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"
|
className="px-4 py-2 font-bold text-white bg-stargaze rounded-md"
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
if (collectionAddress.length === 0) {
|
||||||
|
toast.error('Please select a collection or enter a valid collection address.', {
|
||||||
|
style: { maxWidth: 'none' },
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
fetch(snapshotEndpoint)
|
fetch(snapshotEndpoint)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
|
Loading…
Reference in New Issue
Block a user