Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/app/dashboard/bounties/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default async function DashboardBountiesPage({
<p className="text-xs text-muted-foreground">
Submitted {new Date(s.created_at).toLocaleDateString()}
{s.bounty && (
<> · {formatBountyPayout(s.bounty.payout_usd, s.bounty.payment_coin)} payout</>
<> · {formatBountyPayout(s.bounty.payout_usd, s.bounty.payment_coin)}</>
)}
</p>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/bounties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { formatCurrency } from "@/lib/utils";

/**
* Human label for a bounty payout, matching the gig card style:
* "$2.00 USD (paid in SOL)" when a coin is set, otherwise "$2.00 USD".
* "Pays $2.00 USD in SOL" when a coin is set, otherwise "Pays $2.00 USD".
* Centralized so browse/detail/dashboard stay consistent.
*/
export function formatBountyPayout(
Expand All @@ -12,7 +12,7 @@ export function formatBountyPayout(
): string {
const amount = Number(amountUsd);
const usd = `${formatCurrency(amount)} USD`;
return paymentCoin ? `${usd} (paid in ${paymentCoin})` : usd;
return paymentCoin ? `Pays ${usd} in ${paymentCoin}` : `Pays ${usd}`;
}

export const questionSchema = z.object({
Expand Down
Loading