From 71458017d8fb556c1b77c281aa9bd37bf13b1da7 Mon Sep 17 00:00:00 2001 From: pavanjoshi914 Date: Tue, 13 Feb 2024 20:30:05 +0530 Subject: [PATCH] feat: proper error handling --- src/app/screens/LNURLChannel/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/screens/LNURLChannel/index.tsx b/src/app/screens/LNURLChannel/index.tsx index 48d808ea34..65be12b859 100644 --- a/src/app/screens/LNURLChannel/index.tsx +++ b/src/app/screens/LNURLChannel/index.tsx @@ -74,6 +74,7 @@ function LNURLChannel() { } } catch (e) { console.error(e); + if (e instanceof Error) toast.error(`Error: ${e.message}`); } finally { setLoadingConfirm(false); }