From 2023eb49c9d400e2a68119a965121af8453e8f48 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Mon, 25 Nov 2024 09:40:44 -0800 Subject: [PATCH] explicit undefined check for formula fallback --- src/formulas/formulas/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formulas/formulas/utils.ts b/src/formulas/formulas/utils.ts index a10885e..0bc2790 100644 --- a/src/formulas/formulas/utils.ts +++ b/src/formulas/formulas/utils.ts @@ -137,7 +137,7 @@ export const makeSimpleContractFormula = < }, Promise.resolve(undefined) as Promise) : undefined) - if (!value) { + if (value === undefined) { if (fallback !== undefined) { return fallback }