File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/components/Simulator/screens/SendReceive Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useEffect , useMemo , useState } from "react"
2
+ import isChromatic from "chromatic"
2
3
3
4
import type { PhoneScreenProps } from "@/lib/types"
4
5
@@ -24,7 +25,8 @@ import { Success } from "./Success"
24
25
export const SendReceive = ( { nav, ctaLabel } : PhoneScreenProps ) => {
25
26
const { progressStepper, step } = nav
26
27
const fetchedPrice = useEthPrice ( )
27
- const ethPrice = fetchedPrice > 1 ? fetchedPrice : FALLBACK_ETH_PRICE
28
+ const ethPrice =
29
+ fetchedPrice > 1 && ! isChromatic ( ) ? fetchedPrice : FALLBACK_ETH_PRICE
28
30
const ethReceiveAmount = USD_RECEIVE_AMOUNT / ethPrice
29
31
const [ chosenAmount , setChosenAmount ] = useState ( 0 )
30
32
const ethChosenAmount = chosenAmount / ethPrice
You can’t perform that action at this time.
0 commit comments