From 0006b163149120494011e9610d96e8c1c07f1bb0 Mon Sep 17 00:00:00 2001 From: kieran Date: Fri, 19 Jul 2024 14:52:39 +0100 Subject: [PATCH] fix: show withdraw errors --- src/element/provider/nostr/withdraw.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/element/provider/nostr/withdraw.tsx b/src/element/provider/nostr/withdraw.tsx index d327edd..68cd446 100644 --- a/src/element/provider/nostr/withdraw.tsx +++ b/src/element/provider/nostr/withdraw.tsx @@ -57,6 +57,8 @@ export default function AccountWithdrawl({ if (res.preimage) { setTopup(false); onFinish(); + } else if (res.error) { + setError(res.error); } } catch (e) { if (e instanceof Error) {