Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
supproduction committed Jul 31, 2024
1 parent 9ca7add commit 29906a8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libs/domain/product/src/services/product-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ export function productContextFallbackFactory(
router = inject(RouterService),
context = inject(ContextService)
): Observable<unknown> {
return router.current().pipe(
map((route) =>
route.type === RouteType.Product ? route.params : undefined
)
);
return router
.current()
.pipe(
map((route) =>
route.type === RouteType.Product ? route.params : undefined
)
);
}

export const ProductContextSerializerToken = `${ContextSerializer}${
Expand Down

0 comments on commit 29906a8

Please sign in to comment.