Skip to content

Commit

Permalink
Divide for cents
Browse files Browse the repository at this point in the history
  • Loading branch information
madmax330 committed Sep 6, 2021
1 parent 9e9607c commit cadae94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/CurrentWalletBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const CurrentWalletBalance = (props) => {
}

const formattedBalance = props.numberFormat(
props.userWallet.currentBalance,
props.userWallet.currentBalance / 100, // Divide by 100 because balance is in cents
{style: 'currency', currency: 'USD'},
);
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/InitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const InitialSettingsPage = ({
userWallet,
}) => {
const walletBalance = numberFormat(
userWallet.currentBalance,
userWallet.currentBalance / 100, // Divide by 100 because balance is in cents
{style: 'currency', currency: 'USD'},
);

Expand Down

0 comments on commit cadae94

Please sign in to comment.