diff --git a/src/Checkout/Orders/Orders.js b/src/Checkout/Orders/Orders.js index f0a84fd..46a57a7 100644 --- a/src/Checkout/Orders/Orders.js +++ b/src/Checkout/Orders/Orders.js @@ -30,12 +30,18 @@ function Orders() { }, [user]); return (
-

Your Orders

-
- {orders?.map((order) => ( - - ))} -
+ {!user ? ( +

Sorry, you have no orders!

+ ) : ( + <> +

Your Orders

{" "} +
+ {orders?.map((order) => ( + + ))} +
+ + )}
); }