Skip to content

Commit

Permalink
fix(simple buy): use existing enum instead of string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
blockdylanb committed Jun 3, 2021
1 parent b4332fe commit 75c5aa1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TextGroup
} from 'blockchain-info-components'
import { fiatToString } from 'blockchain-wallet-v4/src/exchange/currency'
import { SupportedWalletCurrenciesType } from 'blockchain-wallet-v4/src/types'
import { OrderType, SupportedWalletCurrenciesType } from 'blockchain-wallet-v4/src/types'
import { ErrorCartridge } from 'components/Cartridge'
import { FlyoutWrapper, Row } from 'components/Flyout'
import { Form } from 'components/Form'
Expand Down Expand Up @@ -198,7 +198,7 @@ const Success: React.FC<InjectedFormProps<{ form: string }, Props> & Props> = (p
paymentPartner === BankPartners.YAPILY ? (
<FormattedMessage id='copy.next' defaultMessage='Next' />
) : (
`${orderType === 'BUY' ? 'Buy' : 'Sell'} ${baseAmount} ${baseCurrency}`
`${orderType === OrderType.BUY ? 'Buy' : 'Sell'} ${baseAmount} ${baseCurrency}`
)

return (
Expand Down

0 comments on commit 75c5aa1

Please sign in to comment.