Skip to content

Commit 94ccb5b

Browse files
refactor(OUT-4010): replace non-null assertion operator with optional chaining
1 parent e19d860 commit 94ccb5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/api/quickbooks/webhook/webhook.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ export class WebhookService extends BaseService {
723723
// All-non-batched skipped pre-claim; a non-batched invoice here = mixed.
724724
// get() is non-null — every id passed the unresolved check above.
725725
const allBatched = copilotInvoiceIds.every(
726-
(id) => paymentIdByInvoice.get(id)!.isBatchedDeposit,
726+
(id) => paymentIdByInvoice.get(id)?.isBatchedDeposit,
727727
)
728728
if (!allBatched) {
729729
throw new APIError(

0 commit comments

Comments
 (0)