Skip to content

Commit

Permalink
Merge pull request #1515 from sushiswap/fix/price-div-0
Browse files Browse the repository at this point in the history
fix: division by zero error
  • Loading branch information
matthewlilley authored Jun 23, 2024
2 parents 53eb29c + a49bc6f commit 99c958d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/evm/src/ui/swap/simple/simple-swap-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SimpleSwapHeader = () => {
: undefined

let price
if (token0Price && token1Price) {
if (token0Price?.quotient && token1Price?.quotient) {
price = new Price({
baseAmount: token0Price,
quoteAmount: token1Price,
Expand Down

0 comments on commit 99c958d

Please sign in to comment.