Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit f926eae

Browse files
committed
Cleanup invoice action helper usage
1 parent 144c0b2 commit f926eae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/action/invoice.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ class InvoiceAction {
3030
async generateUri() {
3131
try {
3232
const { invoice, settings } = this._store;
33-
const amount = toSatoshis(invoice.amount, settings);
3433
const response = await this._grpc.sendCommand('addInvoice', {
35-
value: amount,
34+
value: toSatoshis(invoice.amount, settings),
3635
memo: invoice.note,
3736
});
3837
invoice.encoded = response.payment_request;

0 commit comments

Comments
 (0)