Skip to content

Commit

Permalink
Fixed null
Browse files Browse the repository at this point in the history
Fixed `TypeError: null` when there are no payments has been made
  • Loading branch information
MagicSweet-dev committed Nov 11, 2022
1 parent b0b4319 commit f1ef0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11263,7 +11263,7 @@ export default function Data({ data, demo }: any): ReactElement {
{data?.dataFile ? "They've " : "You've "}spent{" "}
<p className="mx-1 font-extrabold text-blue-500 inline-flex">
{ Utils.getMostUsedCurrency(data.payments.transactions) }
{ data?.payments?.total.toFixed(2) || 0 }
{ data?.payments?.total?.toFixed(2) || 0 }
</p>
on Discord
</span>
Expand Down

0 comments on commit f1ef0eb

Please sign in to comment.