#2070 WK Bestellung zur Abholung klappt nicht - Online

This commit is contained in:
Lorenz Hilpert
2021-08-25 14:53:40 +02:00
parent 5c3d8f6d87
commit f19df87ba0

View File

@@ -477,9 +477,15 @@ export class DomainCheckoutService {
mergeMap((notificationChannels) => this._setNotificationChannels({ processId, notificationChannels }))
);
const setPayer$ = customerTypes$.pipe(
mergeMap(({ isOnline, isB2B }) => {
if (isOnline || isB2B) {
const setPayer$ = itemOrderOptions$.pipe(
first(),
mergeMap((itemOrderOptions) => {
if (
itemOrderOptions.hasB2BDelivery ||
itemOrderOptions.hasDelivery ||
itemOrderOptions.hasDigDelivery ||
itemOrderOptions.hasDownload
) {
return this.getPayer({ processId }).pipe(first());
}
return of(undefined);