Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/Simulator/screens/SendReceive/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useEffect, useMemo, useState } from "react"
import isChromatic from "chromatic"

import type { PhoneScreenProps } from "@/lib/types"

Expand All @@ -24,7 +25,8 @@ import { Success } from "./Success"
export const SendReceive = ({ nav, ctaLabel }: PhoneScreenProps) => {
const { progressStepper, step } = nav
const fetchedPrice = useEthPrice()
const ethPrice = fetchedPrice > 1 ? fetchedPrice : FALLBACK_ETH_PRICE
const ethPrice =
fetchedPrice > 1 && !isChromatic() ? fetchedPrice : FALLBACK_ETH_PRICE
const ethReceiveAmount = USD_RECEIVE_AMOUNT / ethPrice
const [chosenAmount, setChosenAmount] = useState(0)
const ethChosenAmount = chosenAmount / ethPrice
Expand Down