fix(SendReceive.stories): stop eth price updates during chromatic snapshots#14946
Conversation
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…y-prevent-num-updates
…y-prevent-num-updates
pettinarip
left a comment
There was a problem hiding this comment.
Approving as this fixes the problem in the short term but wondering if we couldn't make a mock for the fetch instead, to keep minimal side effects.
@pettinarip currently, I am not sure if there is a way to mock this, since the fetch data is internal via I could've put Either way, I'll make a note for follow-up, and then check with you on what I find. |

Description
For the
SendReceivecomponent, this adds a check for chromatic to use the Fallback eth price when rendering the calculated value during the Chromatic snapshots. This will prevent API updates that would otherwise run a new snapshot for multiple stories when chromatic runs.