Skip to content

Commit 5cc5e32

Browse files
committed
[Dashboard] Fix Aidrop button in ERC1155 being disabled
1 parent 33c23e7 commit 5cc5e32

File tree

1 file changed

+2
-4
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/components

1 file changed

+2
-4
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/components/airdrop-tab.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface AirdropTabProps {
3434
*/
3535
const AirdropTab: React.FC<AirdropTabProps> = ({ contract, tokenId }) => {
3636
const address = useActiveAccount()?.address;
37-
const { handleSubmit, setValue, watch, reset, formState } = useForm<{
37+
const { handleSubmit, setValue, watch, reset } = useForm<{
3838
addresses: AirdropAddressInput[];
3939
}>({
4040
defaultValues: { addresses: [] },
@@ -162,9 +162,7 @@ const AirdropTab: React.FC<AirdropTabProps> = ({ contract, tokenId }) => {
162162
transactionCount={1}
163163
isPending={sendAndConfirmTx.isPending}
164164
type="submit"
165-
disabled={
166-
(!!address && addresses.length === 0) || !formState.isDirty
167-
}
165+
disabled={!!address && addresses.length === 0}
168166
className="self-end"
169167
>
170168
Airdrop

0 commit comments

Comments
 (0)