diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-31 09:58:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-31 09:58:31 -0300 |
commit | e74bf05af76f2165eff0dd3791f3f1a4a7a673fc (patch) | |
tree | 91f9f4f94fcd45146646c6ae86ddddc48396b2ba /packages | |
parent | d95357381a0a492426be767434c55b489e01c041 (diff) |
show the qr when is ready
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Transaction.tsx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index 422695367..fa4b75639 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -873,6 +873,7 @@ export function TransactionView({ kind="neutral" /> {transaction.txState.major === TransactionMajorState.Pending && + transaction.txState.minor === TransactionMinorState.Ready && !transaction.error && ( <Part title={i18n.str`URI`} @@ -969,13 +970,15 @@ export function TransactionView({ text={transaction.exchangeBaseUrl as TranslatedString} kind="neutral" /> - {/* {transaction.pending && ( //pending is not-received - )} */} - <Part - title={i18n.str`URI`} - text={<ShowQrWithCopy text={transaction.talerUri} />} - kind="neutral" - /> + {transaction.txState.major === TransactionMajorState.Pending && + transaction.txState.minor === TransactionMinorState.Ready && + !transaction.error && ( + <Part + title={i18n.str`URI`} + text={<ShowQrWithCopy text={transaction.talerUri} />} + kind="neutral" + /> + )} <Part title={i18n.str`Details`} text={ |