Skip to content

Commit

Permalink
change 'maxPayments' type
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkmr04 committed Dec 11, 2024
1 parent 00f7bac commit 8b2bc1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backends/LightningNodeConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default class LightningNodeConnect {
route_hints: data.route_hints
})
.then((data: lnrpc.AddInvoiceResponse) => snakeize(data));
getPayments = async (data: any) =>
getPayments = async (data?: any) =>
await this.lnc.lnd.lightning
.listPayments({
include_incomplete: true,
Expand Down
2 changes: 1 addition & 1 deletion stores/PaymentsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PaymentsStore {

@action
public getPayments = async (
maxPayments: any = undefined,
maxPayments: string = '',
reversed: boolean = false
) => {
this.loading = true;
Expand Down
2 changes: 1 addition & 1 deletion views/SendingLightning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class SendingLightning extends React.Component<
fetchPayments = async () => {
const { PaymentsStore, TransactionsStore } = this.props;
try {
const payments = await PaymentsStore.getPayments(5, true);
const payments = await PaymentsStore.getPayments('5', true);
const matchingPayment = payments.find(
(payment: any) =>
payment.payment_preimage ===
Expand Down

0 comments on commit 8b2bc1b

Please # to comment.