Skip to content

Commit 0371cb9

Browse files
committed
deps and checks fix
1 parent c285f65 commit 0371cb9

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

Diff for: integration-libs/punchout/core/facade/punchout.service.ts

+1-20
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ export class PunchoutService implements PunchoutFacade {
188188
punchoutState.punchoutSession?.punchOutOperation ===
189189
PunchOutOperation.EDIT
190190
) {
191-
console.log('in EDIT');
192191
this.punchoutStoreService.updatePunchoutState({
193192
cancelRequisition: false,
194193
});
@@ -262,7 +261,6 @@ export class PunchoutService implements PunchoutFacade {
262261
}
263262

264263
protected setPunchoutInitialCart(cartId: string): void {
265-
console.log('setPunchoutInitialCart', cartId);
266264
this.takeCart(cartId)
267265
.pipe(
268266
map((cart) => {
@@ -278,34 +276,22 @@ export class PunchoutService implements PunchoutFacade {
278276
next: (
279277
entries: { productCode: string; quantity: number }[] | undefined
280278
) => {
281-
console.log('setPunchoutInitialCart1', entries);
282279
if (entries?.length) {
283280
this.punchoutStoreService.updatePunchoutState({
284281
punchoutInitialCart: { entries },
285282
});
286283
}
287284
},
288-
error: (error) => {
289-
console.log('error,', error);
290-
},
291-
complete: () => {
292-
console.log('setPunchoutInitialcart completed');
293-
},
294285
});
295286
}
296287

297288
protected revertToInitialCart(state: PunchoutState): Observable<boolean> {
298-
console.log('revertToInitialCart in');
299-
300289
if (!state?.punchoutSession?.cartId) {
301290
return of(true);
302291
}
303-
304292
return this.takeCart(state.punchoutSession.cartId).pipe(
305293
switchMap((cart) => {
306294
cart?.entries?.forEach((entry) => {
307-
console.log('entry', entry);
308-
309295
this.multiCartFacade.removeEntry(
310296
state.punchoutSession?.customerId as string,
311297
state.punchoutSession?.cartId as string,
@@ -317,7 +303,6 @@ export class PunchoutService implements PunchoutFacade {
317303
state.punchoutSession?.cartId as string
318304
).pipe(
319305
tap(() => {
320-
console.log('revertToInitialCart next');
321306
this.multiCartFacade.addEntries(
322307
state.punchoutSession?.customerId as string,
323308
state.punchoutSession?.cartId as string,
@@ -342,13 +327,9 @@ export class PunchoutService implements PunchoutFacade {
342327
}
343328

344329
protected ensureStableCart(cartId: string): Observable<boolean> {
345-
console.log('ensureStableCart');
346330
return this.multiCartFacade.isStable(cartId).pipe(
347-
tap(() => console.log('isStable1')),
348331
filter((stable) => stable),
349-
take(1),
350-
tap(() => console.log('isStable2'))
332+
take(1)
351333
);
352-
// return of(true);
353334
}
354335
}

Diff for: integration-libs/punchout/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
"@spartacus/cart": "2211.38.0-1",
3535
"@spartacus/core": "2211.38.0-1",
3636
"@spartacus/schematics": "2211.38.0-1",
37+
"@spartacus/styles": "2211.38.0-1",
3738
"rxjs": "^7.8.2"
3839
},
3940
"publishConfig": {
4041
"access": "public"
4142
},
4243
"schematics": "./schematics/collection.json"
43-
}
44+
}

0 commit comments

Comments
 (0)