From 7114d65714c1adf50b781ef65f8beb1da07df671 Mon Sep 17 00:00:00 2001 From: Dimitar Danailov Date: Thu, 23 May 2024 06:34:24 +0300 Subject: [PATCH] simple comparing of prices --- apps/website/src/utils/coinbase/comparing.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apps/website/src/utils/coinbase/comparing.ts diff --git a/apps/website/src/utils/coinbase/comparing.ts b/apps/website/src/utils/coinbase/comparing.ts new file mode 100644 index 0000000..93ca8a3 --- /dev/null +++ b/apps/website/src/utils/coinbase/comparing.ts @@ -0,0 +1,9 @@ +function comparing(supportedCoins: Array, cryptoSymbol: string) { + const coins = supportedCoins.map(coin => { + return coin.toLowerCase() + }) + + return coins.includes(cryptoSymbol.toLowerCase()) +} + +export default comparing