Add no wallet warning on execute

This commit is contained in:
Serkan Reis 2023-10-17 08:49:44 +03:00
parent 3638b04d0d
commit e99832c283

View File

@ -337,8 +337,11 @@ export const CollectionActions = ({
const { isLoading, mutate } = useMutation(
async (event: FormEvent) => {
event.preventDefault()
if (!wallet.isWalletConnected) {
throw new Error('Please connect your wallet first.')
}
if (!type) {
throw new Error('Please select an action!')
throw new Error('Please select an action.')
}
if (minterContractAddress === '' && sg721ContractAddress === '') {
throw new Error('Please enter minter and sg721 contract addresses!')