From ab1ed13cdc4357cf74ed0d3ebd6326a81ea9489b Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Fri, 18 Apr 2025 16:26:47 +0200 Subject: [PATCH] Add console.log to empty catch --- src/App.tsx | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b1ca9ea..67aac63 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -626,7 +626,9 @@ function App() { setIsDisabledEditorEnter(parsedVal); } } - } catch (error) {} + } catch (error) { + console.log(error); + } }, []); useEffect(() => { @@ -684,7 +686,9 @@ function App() { try { if (typeof fileContents !== 'string') return; pf = JSON.parse(fileContents); - } catch (e) {} + } catch (e) { + console.log(error); + } try { const requiredFields = [ @@ -932,7 +936,9 @@ function App() { }); getBalanceFunc(); - } catch (error) {} + } catch (error) { + console.log(error); + } }, []); useEffect(() => { @@ -985,7 +991,6 @@ function App() { ); } catch (error: any) { setWalletToBeDownloadedError(error?.message); - } finally { } }; @@ -1107,7 +1112,9 @@ function App() { error.message || 'An error occurred' ); }); - } catch (error) {} + } catch (error) { + console.log(error); + } }; const returnToMain = () => { @@ -2387,17 +2394,7 @@ function App() { )} {` ${requestBuyOrder?.crosschainAtInfo?.[0]?.foreignBlockchain}`} - {/* - - Confirm Wallet Password - - - setPaymentPassword(e.target.value)} - /> */}