Skip to content

Commit

Permalink
fix: remove double slashes in cost center REST call
Browse files Browse the repository at this point in the history
* led to a 404 error on cart page for b2b users if ICM version 13 is used
  • Loading branch information
SGrueber committed Nov 14, 2024
1 parent 38928fa commit 8b1184d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/core/services/user/user.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ describe('User Service', () => {

it("should get eligible cost centers for business user when 'getEligibleCostCenters' is called", done => {
userService.getEligibleCostCenters().subscribe(() => {
verify(apiServiceMock.get(`/costcenters`)).once();
verify(apiServiceMock.get(`costcenters`)).once();
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export class UserService {
getEligibleCostCenters(): Observable<UserCostCenter[]> {
return this.apiService
.b2bUserEndpoint()
.get(`/costcenters`)
.get(`costcenters`)
.pipe(
unpackEnvelope(),
map((costCenters: UserCostCenter[]) => costCenters)
Expand Down

0 comments on commit 8b1184d

Please sign in to comment.