From 5192645cad2aa8099f345ab03df7d118b81ed976 Mon Sep 17 00:00:00 2001 From: Inokentii Mazhara Date: Thu, 16 Nov 2023 11:59:12 +0200 Subject: [PATCH] TW-1147 Refactoring according to comments --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });