Skip to content
Merged
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
small bug fix for when topup is undefined
  • Loading branch information
jpan8866 committed Oct 14, 2024
commit 2da1cc0d6b2e8ced5cdc1dce3a57a40d1c72f1d7
3 changes: 2 additions & 1 deletion components/dashboard/subscription-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ export default function SubscriptionCard({
<p className="text-right text-sm text-muted-foreground">
Credits refill monthly
</p>

</div>
{usage.remaining_topup_credits !== null && (
{usage.remaining_topup_credits && (
<div className="mt-4 flex justify-between">
<div className="flex items-center">
<p className="font-medium">Topup Credits</p>
Expand Down