Skip to content

Commit

Permalink
Fix error for 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
toninorair committed Aug 13, 2020
1 parent f306f6e commit 848d7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poster/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}
});
Expand Down

0 comments on commit 848d7b2

Please sign in to comment.