Toastify snapshot related errors

This commit is contained in:
Serkan Reis 2024-01-01 15:33:18 +03:00
parent 6caab5ce69
commit df571b6c58

View File

@ -67,7 +67,10 @@ const Snapshots: NextPage = () => {
download(csv, 'snapshot.csv', 'text/csv')
})
.catch((err) => {
console.error("Couldn't fetch snapshot data: ", err)
toast.error(`Could not fetch snapshot data: ${err}`, {
style: { maxWidth: 'none' },
})
console.error('Could not fetch snapshot data: ', err)
})
}}
>