Stable payment and order process

This commit is contained in:
Khwezi Mngoma
2026-06-16 13:39:40 +02:00
parent cb03b91c6c
commit 6ca781759f
7 changed files with 170 additions and 32 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ public sealed class HydrationService(AuthenticationStateProvider authStateProvid
{
if (User?.Identity?.IsAuthenticated == false) return;
if (ShoppingCart.OrderId > 0 && ShoppingCart.CustomerId > 0)
if (ShoppingCart.OrderId.HasValue && ShoppingCart.CustomerId.HasValue)
{
cartService.CalculateTotalPrice();
CartHydrated = true;