taler-typescript-core

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

commit 7635bbf28138c3d13e95cf01d34ab1d699b36f1d
parent 9922192b0dba2e479b5af3e29c1d44b98e4d29d7
Author: Sebastian <sebasjm@gmail.com>
Date:   Thu,  2 Mar 2023 08:32:49 -0300

fix: also read taler+http

Diffstat:
Mpackages/taler-wallet-webextension/src/wallet/QrReader.tsx | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/wallet/QrReader.tsx b/packages/taler-wallet-webextension/src/wallet/QrReader.tsx @@ -214,12 +214,10 @@ export function QrReaderPage({ onDetected }: Props): VNode { function onChange(str: string) { if (!!str) { - if (!str.startsWith("taler://")) { + if (classifyTalerUri(str) === TalerUriType.Unknown) { setError( i18n.str`URI is not valid. Taler URI should start with "taler://"`, ); - } else if (classifyTalerUri(str) === TalerUriType.Unknown) { - setError(i18n.str`Unknown type of Taler URI`); } else { setError(undefined); }