diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/QrReader.tsx | 4 |
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); } |