Skip to content

Commit

Permalink
Billing: Fix wrong txHash condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallapointe committed Feb 28, 2023
1 parent 93781de commit 45c2796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/billing/billing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class BillingService {

const invoice = new Invoice();
invoice.invoiceId = newInvoice.invoiceId;
invoice.txHash = txHash.length != 64 ? txHash : newInvoice.txHash;
invoice.txHash = txHash.length === 64 ? txHash : newInvoice.txHash;
invoice.user = user;
invoice.createdAt = new Date().valueOf().toString();
invoice.totalAmount = totalAmount;
Expand Down

0 comments on commit 45c2796

Please sign in to comment.