Skip to content

Commit bd927ae

Browse files
committed
passes lint tests
1 parent 9e27649 commit bd927ae

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/Mintable.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ function MintableModule(props: ModuleInstanceProps) {
5555

5656
const mint = useCallback(
5757
async (values: MintableModuleFormValues) => {
58-
const { recipient, amount, primarySaleRecipient: _, ...data } = values;
59-
const nft = parseAttributes(data);
58+
const nft = parseAttributes(values);
6059
if (!ownerAccount) {
6160
throw new Error("Not an owner account");
6261
}
@@ -65,12 +64,12 @@ function MintableModule(props: ModuleInstanceProps) {
6564
props.contractInfo.name === "MintableERC721"
6665
? MintableERC721.mintWithRole({
6766
contract,
68-
to: recipient,
67+
to: values.recipient,
6968
nfts: [nft],
7069
})
7170
: MintableERC1155.mintWithRole({
7271
contract,
73-
to: recipient,
72+
to: values.recipient,
7473
amount: BigInt(values.amount),
7574
nft,
7675
});

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/lazy-mint-form.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ export const LazyMintNftForm: React.FC<LazyMintNftFormParams> = ({
139139
watch("animation_url") instanceof File ||
140140
watch("external_url") instanceof File;
141141

142-
const _data = watch();
143-
144142
return (
145143
<>
146144
<DrawerHeader>

0 commit comments

Comments
 (0)