Skip to content

Commit 3840c3d

Browse files
committed
some code consistency
1 parent 231e09a commit 3840c3d

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

assets_js_bitrequest_lightning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ function lnurl_encode(human_readable_part, url) {
16531653

16541654
// Decodes LNURL string to original data format
16551655
function lnurl_decode(lnurl) {
1656-
return utf8Decoder.decode(uint_8array(from_words(lnurl_decodeb32(lnurl).data)));
1656+
return utf8_decoder.decode(uint_8array(from_words(lnurl_decodeb32(lnurl).data)));
16571657
}
16581658

16591659
// Decodes and sanitizes LNURL string

assets_js_bitrequest_sockets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ async function process_nfc_payment(proxy_host, proxy_key, payment_id, node_id, i
423423
if (first_record) {
424424
const card_data = first_record.data;
425425
if (card_data) {
426-
const lnurl_withdraw = utf8Decoder.decode(card_data);
426+
const lnurl_withdraw = utf8_decoder.decode(card_data);
427427
if (lnurl_withdraw) {
428428
if (lnurl_withdraw.indexOf("p=") && lnurl_withdraw.indexOf("c=")) {
429429
const url_parts = lnurl_withdraw.split("urlw://");

0 commit comments

Comments
 (0)