don't show update button if user hasn't submitted county yet
This commit is contained in:
parent
b0f47d19e2
commit
1f5d4fc710
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue