From c6e848e067de83ad09bfd8f4cea08017e21cd9dc Mon Sep 17 00:00:00 2001 From: Pavan Joshi <55848322+pavanjoshi914@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:07:22 +0530 Subject: [PATCH] feat: proper error handling (#3041) --- 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); }