Skip to content

Commit

Permalink
Terence/40 fixes (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencehh authored Aug 21, 2024
1 parent 0595fb8 commit 3d9db04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Title = styled(StyledP)`
`;

type Props = {
delegations?: RuneSummary['transfers'];
delegations?: RuneSummary['receipts'];
};

function DelegateSection({ delegations }: Props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function TransactionSummary({ isSubmitting, getFeeForFeeRate, onFeeRateSet, feeR
{runeSummary?.mint && !runeSummary?.mint?.runeIsMintable && (
<WarningCallout bodyText={t('RUNE_IS_CLOSED')} variant="danger" />
)}
{hasRuneDelegation && <DelegateSection delegations={runeSummary?.transfers} />}
{hasRuneDelegation && <DelegateSection delegations={runeSummary?.receipts} />}
<SendSection onShowInscription={setInscriptionToShow} />
<TransferSection onShowInscription={setInscriptionToShow} />
<ReceiveSection onShowInscription={setInscriptionToShow} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ function RecoverRunes() {
{t('DESCRIPTION')}
</Description>
<ScrollContainer>
{(runeSummary?.transfers ?? []).map((transfer) => (
<RowContainer key={transfer.runeName}>
<RuneAmount rune={transfer} hasSufficientBalance={transfer.hasSufficientBalance} />
{(runeSummary?.receipts ?? []).map((receipt) => (
<RowContainer key={receipt.runeName}>
<RuneAmount rune={receipt} hasSufficientBalance />
</RowContainer>
))}
</ScrollContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/app/screens/signBatchPsbtRequest/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function SignBatchPsbtRequest() {
const runeBurns = parsedPsbts.map((psbt) => psbt.runeSummary?.burns ?? []).flat();
const runeDelegations = parsedPsbts
.filter((psbt) => !psbt.summary.isFinal)
.map((psbt) => psbt.runeSummary?.transfers ?? [])
.map((psbt) => psbt.runeSummary?.receipts ?? [])
.flat();
const hasSomeRuneDelegation = runeDelegations.length > 0;

Expand Down

0 comments on commit 3d9db04

Please sign in to comment.