Update Base Minter Creation and Upload & Mint error messages

This commit is contained in:
Serkan Reis 2023-04-04 11:46:52 +03:00
parent ffd4b729e4
commit bff03ffc66

View File

@ -143,10 +143,7 @@ const CollectionCreationPage: NextPage = () => {
setReadyToCreateBm(true)
})
.catch((err) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
if (!err.message.includes('Insufficient wallet balance'))
toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } })
else toast.error(`${err.message}`, { style: { maxWidth: 'none' } })
toast.error(`${err.message}`, { style: { maxWidth: 'none' } })
setReadyToCreateBm(false)
})
} catch (error: any) {
@ -164,7 +161,7 @@ const CollectionCreationPage: NextPage = () => {
setReadyToUploadAndMint(true)
})
.catch((err) => {
toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } })
toast.error(`${err.message}`, { style: { maxWidth: 'none' } })
setReadyToUploadAndMint(false)
})
} catch (error: any) {