Skip to content

Commit

Permalink
Merge pull request #3426 from ingef/fix/decimal-in-money-preview
Browse files Browse the repository at this point in the history
fix not respecting money format
  • Loading branch information
thoniTUB authored May 7, 2024
2 parents fec0ef6 + 71db6bb commit 12ab783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/js/preview/tableUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function useCustomTableRenderers(queryData: GetQueryResponseDoneT) {
} else if (cellType === "MONEY") {
return (value) => {
if (value && !isNaN(value as unknown as number)) {
return currencyFormatter.format(value as unknown as number);
return currencyFormatter.format((value as unknown as number) / 100); // MONEY is sent as cent
}
return "";
};
Expand Down

0 comments on commit 12ab783

Please sign in to comment.