Skip to content

Commit f9241be

Browse files
committed
fix(payments-next): resolve linting error
Because: * a variable could be undefined, and one of its attributes is accessed unsafely This commit: * safely access the attribute Closes #N/A
1 parent 452585e commit f9241be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/payments/cart/src/lib/cart.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ export class CartService {
789789
metricsOptedOut,
790790
latestInvoicePreview,
791791
paymentInfo,
792-
hasActiveSubscriptions: !!subscriptions.length,
792+
hasActiveSubscriptions: !!subscriptions?.length,
793793
};
794794
}
795795

0 commit comments

Comments
 (0)