Skip to content

Commit

Permalink
don't show tier if is cash (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei authored Sep 18, 2024
1 parent 6e4f4bb commit d655a57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions web/components/contract/contracts-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,21 @@ function ContractQuestion(props: {
</Tooltip>
</span>
)}
{!!marketTier && marketTier !== 'play' && marketTier !== 'basic' && (
<span>
<TierTooltip
placement={'top'}
tier={marketTier}
contract={contract}
noTitle
className="relative mr-0.5 inline-flex h-[1em] w-[1.1em] items-baseline"
iconClassName="absolute inset-0 top-[0.2em]"
/>
</span>
)}
{!!marketTier &&
marketTier !== 'play' &&
marketTier !== 'basic' &&
contract.token != 'CASH' && (
<span>
<TierTooltip
placement={'top'}
tier={marketTier}
contract={contract}
noTitle
className="relative mr-0.5 inline-flex h-[1em] w-[1.1em] items-baseline"
iconClassName="absolute inset-0 top-[0.2em]"
/>
</span>
)}
{removeEmojis(contract.question)}
</span>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion web/components/contract/twomba-contract-summary-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function TwombaContractSummaryStats(props: {
/>
) : (
<Row className="gap-4">
{marketTier && marketTier !== 'basic' && (
{marketTier && marketTier !== 'basic' && !isCashContract && (
<TierTooltip tier={marketTier} contract={contract} />
)}
{!isBlocked(privateUser, contract.creatorId) && (
Expand Down

0 comments on commit d655a57

Please sign in to comment.