taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 382c26b397886985a361cde70dd5e5c1d8d5b411
parent bc382d4674b17e9c91e10287002d40603b9d1ab7
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Tue, 23 Jun 2026 22:39:36 -0300

fix #11541

Diffstat:
Mpackages/taler-wallet-webextension/src/components/PaymentButtons.tsx | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx @@ -177,6 +177,7 @@ function PayWithMobile({ uri }: { uri: string }): VNode { const payUri = Result.orUndefined(TalerUris.parse(uri)); const [showQR, setShowQR] = useState<string | undefined>(undefined); + const privateUri = showQR ? Result.orUndefined(TalerUris.parse(showQR)) : undefined async function sharePrivatePaymentURI() { if (!payUri || payUri.type !== TalerUriAction.Pay) { return; @@ -199,12 +200,12 @@ function PayWithMobile({ uri }: { uri: string }): VNode { <LinkSuccess upperCased onClick={sharePrivatePaymentURI}> {!showQR ? i18n.str`Pay with a mobile phone` : i18n.str`Hide QR`} </LinkSuccess> - {showQR && ( + {privateUri && ( <div> - <QR_Taler uri={payUri} /> + <QR_Taler uri={privateUri} /> <i18n.Translate> Scan the QR code or &nbsp; - <a href={showQR}> + <a href={uri}> <i18n.Translate>click here</i18n.Translate> </a> </i18n.Translate>