Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb committed Oct 14, 2024
1 parent 3973071 commit 7b74f2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export function useSquid(params: SwapParams) {

if (fromNetwork.chainId !== chainId) {
console.error(
`[useSquid.exchange] Chain ID mismatch: expected ${fromNetwork.chainId}, got ${chainId}`
`[useSquid.exchange] Chain ID mismatch:
expected ${fromNetwork.chainId}, got ${chainId}`
)
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,9 @@ export const useSwap = () => {

// EVM specific validations
if (
(quoteUnion?.zeroExQuote || quoteUnion?.lifiQuote || quoteUnion?.squidQuote) &&
(quoteUnion?.zeroExQuote ||
quoteUnion?.lifiQuote ||
quoteUnion?.squidQuote) &&
fromToken.coin === BraveWallet.CoinType.ETH &&
fromToken.contractAddress &&
!hasAllowance
Expand Down Expand Up @@ -1052,6 +1054,7 @@ export const useSwap = () => {
quoteUnion?.zeroExQuote,
quoteUnion?.lifiQuote,
quoteUnion?.jupiterQuote?.routePlan.length,
quoteUnion?.squidQuote,
hasAllowance,
quoteErrorUnion,
backendError,
Expand Down

0 comments on commit 7b74f2a

Please sign in to comment.