Skip to content

Commit

Permalink
style: fix type warning
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Sep 2, 2023
1 parent e90d531 commit 06a3e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function Chart({
yAxisWidthModifier: (x) => x + 10,
});
function tickFormatter(value: number) {
return intlConfig?.currency && intlFormat(value, intlConfig.currency);
return (
(intlConfig?.currency && intlFormat(value, intlConfig.currency)) ?? ""
);
}

return (
Expand Down

0 comments on commit 06a3e1f

Please sign in to comment.