diff --git a/src/index.ts b/src/index.ts index e21e9e8..7da90a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -171,7 +171,7 @@ app.get('/api/exchange-rates', async (_req, res) => { tezExchangeRateProvider ); - if (tezExchangeRateError !== undefined) { + if (isDefined(tezExchangeRateError)) { return res.status(500).send({ error: tezExchangeRateError.message });