Skip to content

Commit

Permalink
minor fixes for vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Brakke committed Apr 28, 2023
1 parent 72c0686 commit 0ba17a8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/WalletPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ import { axios } from "boot/axios";
import { date } from "quasar";
import { splitAmount, bigIntStringify } from "src/js/utils";
import * as nobleSecp256k1 from "@noble/secp256k1";
import * as bolt11Decoder from "light-bolt11-decoder";
import { step1Alice, step3Alice } from "src/js/dhke";
import { uint8ToBase64 } from "src/js/base64";
import * as _ from "underscore";
Expand Down Expand Up @@ -1195,14 +1196,11 @@ export default {
this.payInvoiceData.show = true;
let invoice;
try {
invoice = require("light-bolt11-decoder").decode(
this.payInvoiceData.data.request
);
invoice = bolt11Decoder.decode(this.payInvoiceData.data.request);
} catch (error) {
this.notifyWarning("Failed to decode invoice", null, 3000);
this.payInvoiceData.show = false;
throw error;
return;
}
// invoice.amount = invoice.sections[2] / 1000;
Expand Down

0 comments on commit 0ba17a8

Please sign in to comment.