Skip to content

Commit 1fa7a84

Browse files
authored
Merge pull request #1818 from getAlby/chore/remove-protocol-from-qr
feat(qr scanner): remove potential lightning: protocol
2 parents b985020 + 3b63185 commit 1fa7a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/screens/Send/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function Send() {
121121
if (invoice) {
122122
return invoice[1];
123123
} else {
124-
return data;
124+
return data.replace(/^lightning:/i, "");
125125
}
126126
}
127127

0 commit comments

Comments
 (0)