Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't show tier if is cash #2882

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading