Skip to content

Commit

Permalink
fix: use boolean for hideTierForUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Jan 3, 2023
1 parent 6cafd4c commit fdeeec9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ export const TieredSalesProvider = ({
configValuesTiers?.[tierId]?.metadataUri ||
diamondConfigTiers?.[tierId]?.metadataUri,
hideTierForUsers:
configValuesTiers?.[tierId]?.hideTierForUsers ||
diamondConfigTiers?.[tierId]?.hideTierForUsers,
(
configValuesTiers?.[tierId]?.hideTierForUsers ||
diamondConfigTiers?.[tierId]?.hideTierForUsers
)?.toString() === 'true',
};

if (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/modules/finance/tiered-sales/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type Tier = {
isActive?: boolean;
hasAllowlist?: boolean;
metadataUri?: string;
hideTierForUsers?: string;
hideTierForUsers?: boolean;

// Wallet-specific
minterAddress?: BytesLike;
Expand Down

0 comments on commit fdeeec9

Please sign in to comment.