Skip to content

Commit edfc87d

Browse files
committed
hotfix: Disable PoAI for MNDs
1 parent 2e33c6e commit edfc87d

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

app/server-components/main-cards/LicenseCard.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,22 @@ export default async function LicenseCard({ license, licenseType, licenseId, own
122122
/>
123123
</Suspense>
124124

125-
<CardHorizontal
126-
label="Rewards (PoAI)"
127-
value={
128-
<div className="text-primary">
129-
{!!license.r1PoaiRewards ? '$R1 ' : ''}
130-
{license.r1PoaiRewards === undefined
131-
? '...'
132-
: parseFloat(Number(formatUnits(license.r1PoaiRewards ?? 0n, 18)).toFixed(3)).toLocaleString()}
133-
</div>
134-
}
135-
isSmall
136-
/>
125+
{licenseType === 'ND' && (
126+
<CardHorizontal
127+
label="Rewards (PoAI)"
128+
value={
129+
<div className="text-primary">
130+
{!!license.r1PoaiRewards ? '$R1 ' : ''}
131+
{license.r1PoaiRewards === undefined
132+
? '...'
133+
: parseFloat(
134+
Number(formatUnits(license.r1PoaiRewards ?? 0n, 18)).toFixed(3),
135+
).toLocaleString()}
136+
</div>
137+
}
138+
isSmall
139+
/>
140+
)}
137141
</div>
138142

139143
{environment === 'mainnet' && licenseId === '1' && licenseType === 'GND' && <TreasuryWallets license={license} />}

0 commit comments

Comments
 (0)