Skip to content

Commit

Permalink
simple comparing of prices
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitardanailov committed May 23, 2024
1 parent ab4cb3a commit 7114d65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/website/src/utils/coinbase/comparing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function comparing(supportedCoins: Array<string>, cryptoSymbol: string) {
const coins = supportedCoins.map(coin => {
return coin.toLowerCase()
})

return coins.includes(cryptoSymbol.toLowerCase())
}

export default comparing

0 comments on commit 7114d65

Please sign in to comment.