diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs b/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs index 03342e66..21a9f84e 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs @@ -16,12 +16,12 @@ namespace EShopOnAbp.PublicWeb.Menus return Task.CompletedTask; } + context.Toolbar.Items.Add(new ToolbarItem(typeof(CartWidgetViewComponent))); + if (!context.ServiceProvider.GetRequiredService().IsAuthenticated) { context.Toolbar.Items.Add(new ToolbarItem(typeof(LoginLinkViewComponent))); } - - context.Toolbar.Items.Add(new ToolbarItem(typeof(CartWidgetViewComponent))); return Task.CompletedTask; }