Skip to content

Commit

Permalink
Fix blank signing page if read-only account
Browse files Browse the repository at this point in the history
  • Loading branch information
cairomassimo committed Feb 24, 2022
1 parent 2c56027 commit 9940e7c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ui/pages/SignTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ export default function SignTransaction({
const signingMethod = signerAccountTotal?.signingMethod ?? null
if (
typeof transactionDetails === "undefined" ||
typeof signerAccountTotal === "undefined" ||
signingMethod === null
typeof signerAccountTotal === "undefined"
) {
// TODO Some sort of unexpected state error if we end up here... Or do we
// go back in history? That won't work for dApp popovers though.
Expand All @@ -122,7 +121,11 @@ export default function SignTransaction({
await dispatch(rejectTransactionSignature())
}
const handleConfirm = async () => {
if (isTransactionDataReady && transactionDetails) {
if (
isTransactionDataReady &&
transactionDetails &&
signingMethod !== null
) {
dispatch(
signTransaction({
transaction: transactionDetails,
Expand Down

0 comments on commit 9940e7c

Please sign in to comment.