From 617ab78264bb3ef200e3568bb6cf9b60ddf5687a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 14 Oct 2023 00:00:23 -0300 Subject: show operation not found --- .../demobank-ui/src/pages/WithdrawalQRCode.tsx | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'packages/demobank-ui') 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; -- cgit v1.2.3