Skip to content

Commit

Permalink
Merge pull request #1695 from p2p-org/feature/pwn-950
Browse files Browse the repository at this point in the history
[ETH-950] Total amount in send action button
  • Loading branch information
lisemyon authored Feb 12, 2024
2 parents 7d023cc + 9541eca commit 43caed2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions p2p_wallet/Scenes/Main/Send/Input/SendInputViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,12 @@ private extension SendInputViewModel {
inputAmountViewModel.isError = false
if !currentState.isSendingViaLink {
var title = L10n.send + " "
title += currentState.amountInToken.tokenAmountFormattedString(
symbol: currentState.token.symbol,
maximumFractionDigits: Int(currentState.token.decimals),
roundingMode: .down
)
title += currentState.totalAmount.convertToBalance(decimals: currentState.token.decimals)
.tokenAmountFormattedString(
symbol: currentState.token.symbol,
maximumFractionDigits: Int(currentState.token.decimals),
roundingMode: .down
)
actionButtonData = SliderActionButtonData(isEnabled: true, title: title)
} else {
actionButtonData = SliderActionButtonData(
Expand Down

0 comments on commit 43caed2

Please sign in to comment.