From 848d7b240fe7c6caa22ab6a5cf1b816e8af508fe Mon Sep 17 00:00:00 2001 From: Antonina Norair Date: Thu, 13 Aug 2020 14:59:37 -0700 Subject: [PATCH] Fix error for 0 value --- poster/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poster/src/index.ts b/poster/src/index.ts index 36614c76..3f366e39 100644 --- a/poster/src/index.ts +++ b/poster/src/index.ts @@ -38,7 +38,7 @@ async function run() { // check that price deltas are set up for all assets assets.forEach(asset => { - if (!price_deltas[asset]) { + if (price_deltas[asset] == undefined) { throw new TypeError(`For each asset price delta should be provided, ${asset} asset is not properly configured`) } });