Skip to content

Commit

Permalink
TW-1147 Refactoring according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
keshan3262 committed Nov 16, 2023
1 parent 6433164 commit 5192645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit 5192645

Please sign in to comment.