feat: log errorss to consolve when showing error notification (#489)

This commit is contained in:
Vojtech Simetka
2022-07-25 07:26:01 +02:00
committed by GitHub
parent feeca008ac
commit 6bfe97be5d
10 changed files with 12 additions and 0 deletions
+2
View File
@@ -55,6 +55,7 @@ export function GiftCardFund(): ReactElement {
enqueueSnackbar('Upgraded to light node', { variant: 'success' })
navigate(ROUTES.RESTART_LIGHT)
} catch (error) {
console.error(error) // eslint-disable-line
enqueueSnackbar(`Failed to upgrade: ${error}`, { variant: 'error' })
}
}
@@ -72,6 +73,7 @@ export function GiftCardFund(): ReactElement {
if (canUpgradeToLightNode) await restart()
} catch (error) {
console.error(error) // eslint-disable-line
enqueueSnackbar(`Failed to fund: ${error}`, { variant: 'error' })
} finally {
setLoading(false)