From 71db6bbbc1e07b58d86f60f8f424a36bb7a3ac34 Mon Sep 17 00:00:00 2001 From: awildturtok <1553491+awildturtok@users.noreply.github.com> Date: Tue, 7 May 2024 13:39:35 +0200 Subject: [PATCH] fix not respecting money format --- frontend/src/js/preview/tableUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/js/preview/tableUtils.ts b/frontend/src/js/preview/tableUtils.ts index a61d73e4e9..2ee65d8888 100644 --- a/frontend/src/js/preview/tableUtils.ts +++ b/frontend/src/js/preview/tableUtils.ts @@ -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 ""; };