Skip to content

Commit 07b2df0

Browse files
committed
fix var name
1 parent 7536759 commit 07b2df0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/ContractSettingsPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export function ContractSettingsPage(props: {
7979
contract: ThirdwebContract;
8080
functionSelectors: string[];
8181
twAccount: Account | undefined;
82-
hasFeeConfig: boolean;
82+
hasDefaultFeeConfig: boolean;
8383
}) {
84-
const { functionSelectors, contract, twAccount, hasFeeConfig } = props;
84+
const { functionSelectors, contract, twAccount, hasDefaultFeeConfig } = props;
8585
return (
8686
<ContractSettingsPageInner
8787
contract={contract}
@@ -98,7 +98,7 @@ export function ContractSettingsPage(props: {
9898
CommonExt.isSetDefaultRoyaltyInfoSupported(functionSelectors),
9999
].every(Boolean)}
100100
isPlatformFeesSupported={
101-
!hasFeeConfig &&
101+
!hasDefaultFeeConfig &&
102102
[
103103
CommonExt.isGetPlatformFeeInfoSupported(functionSelectors),
104104
CommonExt.isSetPlatformFeeInfoSupported(functionSelectors),

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export default async function Page(props: {
3535
getContractPageMetadata(info.contract),
3636
]);
3737

38-
let hasFeeConfig = true;
38+
let hasDefaultFeeConfig = true;
3939
try {
4040
const feeInfo = await getPlatformFeeInfo({ contract });
41-
hasFeeConfig =
41+
hasDefaultFeeConfig =
4242
feeInfo[0].toLowerCase() === DEFAULT_FEE_RECIPIENT.toLowerCase();
4343
} catch {}
4444

@@ -47,7 +47,7 @@ export default async function Page(props: {
4747
contract={info.contract}
4848
functionSelectors={metadata.functionSelectors}
4949
twAccount={account}
50-
hasFeeConfig={hasFeeConfig}
50+
hasDefaultFeeConfig={hasDefaultFeeConfig}
5151
/>
5252
);
5353
}

0 commit comments

Comments
 (0)