From 617ab78264bb3ef200e3568bb6cf9b60ddf5687a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 14 Oct 2023 00:00:23 -0300 Subject: [PATCH] show operation not found --- .../src/pages/WithdrawalQRCode.tsx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx index 91c5da718..35fb94a6c 100644 --- a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx @@ -52,6 +52,41 @@ export function WithdrawalQRCode({ if (result.loading) { return ; } + if (result.type === ErrorType.CLIENT && result.status === HttpStatusCode.NotFound) { + return
+
+
+ +
+ +
+ +
+

+ + This operation is not known by the server. The operation id is wrong or the + server deleted the operation information before reaching here. + +

+
+
+
+
+ +
+
+ } return handleNotOkResult(i18n)(result); } const { data } = result;