Skip to content

Commit

Permalink
fix(wallet-mobile): exchange value format
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Nov 18, 2024
1 parent 12358c2 commit b6af5df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {Icon} from '../../../../components/Icon'
import {KeyboardAvoidingView} from '../../../../components/KeyboardAvoidingView/KeyboardAvoidingView'
import {useModal} from '../../../../components/Modal/ModalContext'
import {banxaTestWallet} from '../../../../kernel/env'
import {decimalDot} from '../../../../kernel/i18n/languages'
import {useMetrics} from '../../../../kernel/metrics/metricsManager'
import {useWalletNavigation} from '../../../../kernel/navigation'
import {delay} from '../../../../yoroi-wallets/utils/timeUtils'
Expand Down Expand Up @@ -58,7 +59,7 @@ export const CreateExchangeOrderScreen = () => {

const quantity = BigInt(amount.value)
const orderAmount = Number(
atomicFormatter({value: quantity, decimalPlaces: wallet.portfolioPrimaryTokenInfo.decimals}),
atomicFormatter({value: quantity, decimalPlaces: wallet.portfolioPrimaryTokenInfo.decimals, format: decimalDot}),
)
const returnUrl = encodeURIComponent(
linksYoroiModuleMaker('yoroi').exchange.order.showCreateResult({
Expand Down

0 comments on commit b6af5df

Please sign in to comment.