aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-03-02 08:32:49 -0300
committerSebastian <sebasjm@gmail.com>2023-03-02 08:32:55 -0300
commit7635bbf28138c3d13e95cf01d34ab1d699b36f1d (patch)
tree2360a075f0f006d237eef439f10ceea41687bc88
parent9922192b0dba2e479b5af3e29c1d44b98e4d29d7 (diff)
fix: also read taler+http
-rw-r--r--packages/taler-wallet-webextension/src/wallet/QrReader.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/QrReader.tsx b/packages/taler-wallet-webextension/src/wallet/QrReader.tsx
index 0cbb12d40..6a31da959 100644
--- 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);
}