Skip to content

Commit aefd83c

Browse files
committed
fix(send): show fee in selected unit
1 parent b78d775 commit aefd83c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/screens/Wallets/Send/ReviewAndSend.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import {
4242
} from '../../../store/slices/metadata';
4343
import useColors from '../../../hooks/colors';
4444
import { useAppDispatch, useAppSelector } from '../../../hooks/redux';
45-
import { useDisplayValues } from '../../../hooks/displayValues';
4645
import { useLightningBalance } from '../../../hooks/lightning';
4746
import { EFeeId } from '../../../store/types/fees';
4847
import {
@@ -52,9 +51,9 @@ import {
5251
import { FeeText } from '../../../utils/fees';
5352
import { getFiatDisplayValues } from '../../../utils/displayValues';
5453
import { showToast } from '../../../utils/notifications';
55-
// import { refreshWallet } from '../../../utils/wallet';
5654
import type { SendScreenProps } from '../../../navigation/types';
5755
import SafeAreaInset from '../../../components/SafeAreaInset';
56+
import Money from '../../../components/Money';
5857
import Dialog from '../../../components/Dialog';
5958
import Biometrics from '../../../components/Biometrics';
6059
import Button from '../../../components/buttons/Button';
@@ -333,8 +332,6 @@ const ReviewAndSend = ({
333332
});
334333
}, [transaction.satsPerByte, transaction.message]);
335334

336-
const fiatTransactionFee = useDisplayValues(feeSats);
337-
338335
const runCreateTxMethods = useCallback((): void => {
339336
if (usesLightning) {
340337
createLightningTransaction().then();
@@ -609,11 +606,14 @@ const ReviewAndSend = ({
609606
value={
610607
<View style={styles.fee}>
611608
{feeIcon}
612-
<BodySSB>
613-
{t(`fee:${selectedFeeId}.title`)} (
614-
{fiatTransactionFee.fiatSymbol}
615-
{fiatTransactionFee.fiatFormatted})
616-
</BodySSB>
609+
<BodySSB>{t(`fee:${selectedFeeId}.title`)} (</BodySSB>
610+
<Money
611+
sats={feeSats}
612+
size="bodySSB"
613+
symbol={true}
614+
symbolColor="primary"
615+
/>
616+
<BodySSB>)</BodySSB>
617617
<PencilIcon height={12} width={22} />
618618
</View>
619619
}

0 commit comments

Comments
 (0)