fix: also read taler+http
This commit is contained in:
parent
9922192b0d
commit
7635bbf281
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user