Add empty collection address warning
This commit is contained in:
parent
19e5fd0abb
commit
2a293f1a62
@ -101,6 +101,12 @@ const Holders: NextPage = () => {
|
||||
className="px-4 py-2 font-bold text-white bg-stargaze rounded-md"
|
||||
isLoading={isLoading}
|
||||
onClick={() => {
|
||||
if (collectionAddress.length === 0) {
|
||||
toast.error('Please select a collection or enter a valid collection address.', {
|
||||
style: { maxWidth: 'none' },
|
||||
})
|
||||
return
|
||||
}
|
||||
setIsLoading(true)
|
||||
fetch(snapshotEndpoint)
|
||||
.then((response) => response.json())
|
||||
|
Loading…
Reference in New Issue
Block a user