Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
keep 2 floating points
  • Loading branch information
jpan8866 committed Oct 15, 2024
commit d8efbf83e29feb42afae0b696c7551c63baec4a3
2 changes: 1 addition & 1 deletion components/dashboard/freetrial-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function FreeTrialCard({
<p className="text-sm text-muted-foreground">
{loading
? "-"
: `$${usage.remaining_topup_credits} remaining`}
: `$${Math.floor(usage.remaining_topup_credits * 100) / 100} remaining`}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/subscription-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function SubscriptionCard({
<p className="text-sm text-muted-foreground">
{loading
? "-"
: `$${usage.remaining_topup_credits} remaining`}
: `$${Math.floor(usage.remaining_topup_credits * 100) / 100} remaining`}
</p>
</div>
)}
Expand Down