Skip to content

Commit

Permalink
Default formatMoney to zero when no number
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitBarnard committed Feb 6, 2025
1 parent ccf7c7a commit 5a17261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front_end/src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const monthsToTitleCase = months.map(
);

export const formatMoney = (amount) => {
return (amount / 100).toFixed(2);
return (amount / 100).toFixed(2) | 0;
};

function getCookie(name) {
Expand Down

0 comments on commit 5a17261

Please sign in to comment.