From 52da542de5d51f5ffaffb7406807800237e5167a Mon Sep 17 00:00:00 2001 From: shubham Date: Fri, 14 Jun 2024 16:37:29 +0530 Subject: [PATCH] Dispaly sats in charge btn in case fiat is not enabled --- views/Wallet/StandalonePosPane.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/Wallet/StandalonePosPane.tsx b/views/Wallet/StandalonePosPane.tsx index 88d6b5cd7..a9a3ae2f0 100644 --- a/views/Wallet/StandalonePosPane.tsx +++ b/views/Wallet/StandalonePosPane.tsx @@ -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={{