We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8a73e6 commit c94dcf8Copy full SHA for c94dcf8
1 file changed
services/invoiceService.ts
@@ -95,9 +95,7 @@ export async function getNewInvoiceNumber (userId: string): Promise<string | und
95
const invoicesWithOurPattern = userInvoices.filter(invoice => defaultPattern.test(invoice.invoiceNumber))
96
97
if (invoicesWithOurPattern === null || invoicesWithOurPattern.length < userInvoices.length) {
98
- if (userInvoices.length > 0) {
99
- return
100
- }
+ return
101
}
102
103
const invoiceWithTheLatestInvoiceNumber = invoicesWithOurPattern[0]
0 commit comments