From ff8abc3c66d2ffa316201c70737b8409ded852d2 Mon Sep 17 00:00:00 2001 From: Jason Gessner Date: Tue, 12 Sep 2023 23:09:31 -0500 Subject: [PATCH] Fix X vs. 0 cost display. --- app/utils/template-operators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/template-operators.js b/app/utils/template-operators.js index f399841..1e32efb 100644 --- a/app/utils/template-operators.js +++ b/app/utils/template-operators.js @@ -1,3 +1,3 @@ export const eq = (a, b) => a === b; -export const maybe = (val, def = 'X') => (val ? val : def); +export const maybe = (val, def = 'X') => (val >= 0 ? val : def); export const formatDate = (date) => Intl.DateTimeFormat().format(date);