don't show update button if user hasn't submitted county yet

This commit is contained in:
Joonas 2023-01-20 15:43:45 +02:00
parent b0f47d19e2
commit 1f5d4fc710
1 changed files with 10 additions and 6 deletions

View File

@ -130,12 +130,16 @@ export default function Index() {
alt="me"
/>
<h1>{data.me.username}</h1>
<Link
className="text-sky-400 hover:text-sky-600 hover:underline"
to={"/update"}
>
Update
</Link>
{data.selfData ? (
<Link
className="text-sky-400 hover:text-sky-600 hover:underline"
to={"/update"}
>
Update
</Link>
) : (
""
)}
<Link
className="text-sky-400 hover:text-sky-600 hover:underline"
to={"/logout"}