Update Base Minter Creation and Upload & Mint error messages
This commit is contained in:
parent
ffd4b729e4
commit
bff03ffc66
@ -143,10 +143,7 @@ const CollectionCreationPage: NextPage = () => {
|
|||||||
setReadyToCreateBm(true)
|
setReadyToCreateBm(true)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
toast.error(`${err.message}`, { style: { maxWidth: 'none' } })
|
||||||
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' } })
|
|
||||||
setReadyToCreateBm(false)
|
setReadyToCreateBm(false)
|
||||||
})
|
})
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@ -164,7 +161,7 @@ const CollectionCreationPage: NextPage = () => {
|
|||||||
setReadyToUploadAndMint(true)
|
setReadyToUploadAndMint(true)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } })
|
toast.error(`${err.message}`, { style: { maxWidth: 'none' } })
|
||||||
setReadyToUploadAndMint(false)
|
setReadyToUploadAndMint(false)
|
||||||
})
|
})
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user