Skip to content

Commit

Permalink
fixed state
Browse files Browse the repository at this point in the history
  • Loading branch information
u17260044 committed Oct 27, 2023
1 parent 3225f2f commit 4ef639f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/app/features/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ng-container *ngIf="this.authFacade.getCurrentUser() | async">
<ng-container *ngIf="forYouProducts$ | async as products">
<ng-container *ngIf="products.length >= 2 as isEnough">
<div style="align-items: center">
<div style="align-items: center; margin-top: 30px">
<h2>Recommended For You</h2>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/src/app/features/profile/states/profile.selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ProfileSelectors {
// }
@Selector([ProfileState])
static getRecommendedProducts(state: ProfileStateModel): IProduct[] {
return state.recommended_products || [];
return state.profile?.details.recommended_products || [];
}
@Selector([ProfileState])
static getFollowedSellers(state: ProfileStateModel): string[] {
Expand Down

0 comments on commit 4ef639f

Please sign in to comment.