Skip to content

Commit 5218313

Browse files
committed
fix: transferable module restriction (#5420)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on modifying the `isRestricted` prop in the `Transferable` component to invert its boolean value based on the `isTransferEnabledQuery.data`. ### Detailed summary - Changed the `isRestricted` prop from `isRestricted={!!isTransferEnabledQuery.data}` to `isRestricted={!isTransferEnabledQuery.data}`. - Other props remain unchanged, including `isPending`, `adminAddress`, `update`, and `isOwnerAccount`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 731089b commit 5218313

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function TransferableModule(props: ModuleInstanceProps) {
103103
<TransferableModuleUI
104104
{...props}
105105
isPending={isTransferEnabledQuery.isPending}
106-
isRestricted={!!isTransferEnabledQuery.data}
106+
isRestricted={!isTransferEnabledQuery.data}
107107
adminAddress={props.ownerAccount?.address || ""}
108108
update={update}
109109
isOwnerAccount={!!props.ownerAccount}

0 commit comments

Comments
 (0)