Skip to content

Commit

Permalink
fixup! use specific component in SignTransaction flow (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
chabroA committed Aug 30, 2023
1 parent 68ac62b commit 8b12536
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const StepSummary = (props: StepProps) => {
return null;
}

const { estimatedFees, amount, totalSpent, warnings } = status;
const { estimatedFees, amount, totalSpent, errors, warnings } = status;
const txInputs = "txInputs" in status ? status.txInputs : undefined;
const feeTooHigh = warnings.feeTooHigh;
const currency = getAccountCurrency(account);
Expand Down Expand Up @@ -103,6 +103,13 @@ const StepSummary = (props: StepProps) => {
/>
</Alert>
) : null}
{/* Since a sign transaction (live-app related) can start at the summary step
(if fees provided by live-app), we need to display transaction status errors here */}
{errors && Object.keys(errors).length ? (
<Alert type="error">
<TranslatedError error={Object.values<Error>(errors)[0]} />
</Alert>
) : null}
<FromToWrapper>
<Box>
<Box horizontal alignItems="center">
Expand Down

0 comments on commit 8b12536

Please sign in to comment.