diff --git a/src/app/profile/[address]/page.tsx b/src/app/profile/[address]/page.tsx index fff5452d..b7a71043 100644 --- a/src/app/profile/[address]/page.tsx +++ b/src/app/profile/[address]/page.tsx @@ -736,21 +736,27 @@ function StoriesTab({
Donations Received:{" "} - - {totalDonations > BigInt(0) ? `${formatPrice(formatUnits(totalDonations, 18))} ${RESERVE_LABEL}` : "—"} - - {totalDonations > BigInt(0) && plotUsd != null && ( - ({formatUsdValue(Number(formatUnits(totalDonations, 18)) * plotUsd)}) + {totalDonations > BigInt(0) ? ( + <> + + {plotUsd != null ? formatUsdValue(Number(formatUnits(totalDonations, 18)) * plotUsd) : `${formatPrice(formatUnits(totalDonations, 18))} ${RESERVE_LABEL}`} + + {plotUsd != null && ( + ({formatPrice(formatUnits(totalDonations, 18))} {RESERVE_LABEL}) + )} + + ) : ( + )}
{claimedRoyalties !== undefined && claimedRoyalties > BigInt(0) && (
Royalties Claimed:{" "} - {formatPrice(formatUnits(claimedRoyalties, 18))} {RESERVE_LABEL} + {plotUsd != null ? formatUsdValue(Number(formatUnits(claimedRoyalties, 18)) * plotUsd) : `${formatPrice(formatUnits(claimedRoyalties, 18))} ${RESERVE_LABEL}`} {plotUsd != null && ( - ({formatUsdValue(Number(formatUnits(claimedRoyalties, 18)) * plotUsd)}) + ({formatPrice(formatUnits(claimedRoyalties, 18))} {RESERVE_LABEL}) )}
)} @@ -1877,16 +1883,16 @@ function ActivityTab({ address }: { address: string }) {
Trades
-
{totalTradeAmount > 0 ? formatPrice(totalTradeAmount) : "—"}
-
Trade Vol ({RESERVE_LABEL})
+
{totalTradeAmount > 0 && plotUsd != null ? formatUsdValue(totalTradeAmount * plotUsd) : "—"}
+
Trade Vol
{donationEntries.length}
Donations
-
{totalDonationAmount > 0 ? formatPrice(totalDonationAmount) : "—"}
-
Donated ({RESERVE_LABEL})
+
{totalDonationAmount > 0 && plotUsd != null ? formatUsdValue(totalDonationAmount * plotUsd) : "—"}
+
Donated