Skip to content

Commit 2de303a

Browse files
committed
tx count correction
1 parent 8c8edd6 commit 2de303a

File tree

1 file changed

+5
-1
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ export function TransferableModuleUI(
178178
}
179179
isLoading={updateMutation.isPending}
180180
colorScheme="primary"
181-
transactionCount={1 + allowListLength}
181+
transactionCount={
182+
// if already restricted, only need to send the allowlist txs
183+
// else - need to send one more
184+
(props.isRestricted ? 0 : 1) + allowListLength
185+
}
182186
txChainID={props.contractChainId}
183187
>
184188
Update

0 commit comments

Comments
 (0)