Commit f0176d4a authored by Christopher Cottier's avatar Christopher Cottier

politely ask user to login to view order history

parent 4837a997
......@@ -25,7 +25,7 @@ const OrderHistory = () => {
return (
<main>
<h1 id="order-history-header">Order History</h1>
{user === null ? (
{user === null || user.currentUser === null ? (
<div>Please login to place orders!</div>
) : null}
<div id="orders">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment