From 7635bbf28138c3d13e95cf01d34ab1d699b36f1d Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 2 Mar 2023 08:32:49 -0300
Subject: fix: also read taler+http

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

(limited to 'packages/taler-wallet-webextension/src/wallet/QrReader.tsx')

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);
       }
-- 
cgit v1.2.3

