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
@@ -38,6 +38,7 @@ export function GiftCardTopUpIndex(): ReactElement {
enqueueSnackbar('Successfully verified gift wallet', { variant: 'success' })
navigate(ROUTES.TOP_UP_GIFT_CODE_FUND.replace(':privateKeyString', giftCode))
} catch (error) {
console.error(error) // eslint-disable-line
enqueueSnackbar(`Gift wallet could not be verified: ${error}`, { variant: 'error' })
} finally {
setLoading(false)