Skip to content

Commit

Permalink
fix: remove satributes component from receive section in payment addr…
Browse files Browse the repository at this point in the history
…ess (#133)

* fix: remove satributes component from receive section in payment address

* chore: fix logic

* chore: fix logic for all cases
  • Loading branch information
fedeerbes authored Mar 25, 2024
1 parent 6c08ff9 commit 3980cae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/confirmBtcTransaction/receiveSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Props = {
onShowInscription: (inscription: btcTransaction.IOInscription) => void;
};
function ReceiveSection({ outputs, netAmount, onShowInscription }: Props) {
const { btcAddress, ordinalsAddress } = useWalletSelector();
const { btcAddress, ordinalsAddress, hasActivatedRareSatsKey } = useWalletSelector();
const { t } = useTranslation('translation', { keyPrefix: 'CONFIRM_TRANSACTION' });

const { outputsToPayment, outputsToOrdinal } = getOutputsWithAssetsToUserAddress({
Expand All @@ -54,7 +54,8 @@ function ReceiveSection({ outputs, netAmount, onShowInscription }: Props) {
});

const inscriptionsRareSatsInPayment = outputsToPayment.filter(
(output) => output.inscriptions.length > 0 || output.satributes.length > 0,
(output) =>
output.inscriptions.length > 0 || (hasActivatedRareSatsKey && output.satributes.length > 0),
);
const areInscriptionsRareSatsInPayment = inscriptionsRareSatsInPayment.length > 0;
const amountIsBiggerThanZero = netAmount > 0;
Expand Down

0 comments on commit 3980cae

Please sign in to comment.