Skip to content

Commit

Permalink
Merge pull request #2241 from shubhamkmr04/shubham/display-sats-on-ch…
Browse files Browse the repository at this point in the history
…arge-button

POS: Display 'sats' in CHARGE button when fiat is not enabled
  • Loading branch information
kaloudis authored Jun 18, 2024
2 parents e5260de + 52da542 commit 728de87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion views/Wallet/StandalonePosPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,12 @@ export default class StandalonePosPane extends React.PureComponent<
title={`${localeString('general.charge')} (${
currentOrder
? (itemQty > 0 ? `${itemQty} - ` : '') +
(this.state.totalMoneyDisplay || 0)
(fiatEnabled
? this.state.totalMoneyDisplay
: ` ${this.props.UnitsStore.getAmountFromSats(
currentOrder?.total_money
?.sats
)}`)
: '0'
})`}
containerStyle={{
Expand Down

0 comments on commit 728de87

Please sign in to comment.