Skip to content

Commit 02986ba

Browse files
committed
fixup! Fix promiseTimeout to cleanup setTimeout
1 parent 579527a commit 02986ba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/partners/lifi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,15 @@ export function processLifiTx(rawTx: unknown): StandardTx {
249249
// chain plugin id.
250250
depositEvmChainId =
251251
depositEvmChainId == null
252-
? EVM_CHAIN_IDS[depositChainPluginId ?? '']
252+
? EVM_CHAIN_IDS[depositChainPluginId]
253253
: depositEvmChainId
254254
payoutEvmChainId =
255255
payoutEvmChainId == null
256-
? EVM_CHAIN_IDS[payoutChainPluginId ?? '']
256+
? EVM_CHAIN_IDS[payoutChainPluginId]
257257
: payoutEvmChainId
258258

259-
const depositTokenType = tokenTypes[depositChainPluginId ?? '']
260-
const payoutTokenType = tokenTypes[payoutChainPluginId ?? '']
259+
const depositTokenType = tokenTypes[depositChainPluginId]
260+
const payoutTokenType = tokenTypes[payoutChainPluginId]
261261

262262
if (depositTokenType == null || payoutTokenType == null) {
263263
throw new Error('Missing token type')

0 commit comments

Comments
 (0)