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
+1
View File
@@ -51,6 +51,7 @@ export default function Index(): ReactElement {
await createGiftWallet(wallet.address)
enqueueSnackbar('Succesfully funded gift wallet', { variant: 'success' })
} catch (error) {
console.error(error) // eslint-disable-line
enqueueSnackbar(`Failed to fund gift wallet: ${error}`, { variant: 'error' })
} finally {
setLoading(false)