Skip to content

Commit 3739f33

Browse files
committed
chore: use getAddressKey
1 parent f166ee4 commit 3739f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/cowswap-frontend/src/modules/tradeQuote/state/tradeQuoteAtom.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { atom } from 'jotai'
22

33
import { getCurrencyAddress } from '@cowprotocol/common-utils'
4-
import { QuoteAndPost } from '@cowprotocol/cow-sdk'
4+
import { getAddressKey, QuoteAndPost } from '@cowprotocol/cow-sdk'
55
import { BridgeProviderQuoteError, BridgeQuoteResults } from '@cowprotocol/sdk-bridging'
66

77
import { isProviderNetworkUnsupportedAtom } from 'entities/common/isProviderNetworkUnsupported.atom'
@@ -83,5 +83,5 @@ export const currentTradeQuoteAtom = atom<TradeQuoteState>((get) => {
8383
return DEFAULT_TRADE_QUOTE_STATE
8484
}
8585

86-
return tradeQuotes[getCurrencyAddress(inputCurrency).toLowerCase()] || DEFAULT_TRADE_QUOTE_STATE
86+
return tradeQuotes[getAddressKey(getCurrencyAddress(inputCurrency))] || DEFAULT_TRADE_QUOTE_STATE
8787
})

0 commit comments

Comments
 (0)