Skip to content

Commit

Permalink
feat(trading currency): use trading currency if it's set
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Dec 16, 2021
1 parent 1606177 commit 312a8d5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ class CryptoSelector extends React.Component<InjectedFormProps<{}, Props> & Prop

// use preferred currency from local storage if it exists
const fiatCurrency =
(this.props.originalFiatCurrency &&
preferredCurrencyFromStorage &&
this.props.showTradingCurrency) ||
getFiatFromPair(pair.pair)
this.props.originalFiatCurrency &&
preferredCurrencyFromStorage &&
this.props.showTradingCurrency
? preferredCurrencyFromStorage
: getFiatFromPair(pair.pair)

// default continue to enter amount step
return this.props.buySellActions.setStep({
Expand Down

0 comments on commit 312a8d5

Please sign in to comment.