From 61fb9d52da6de7e1483655f13a0a7a1348db6d78 Mon Sep 17 00:00:00 2001 From: NotNite Date: Mon, 27 Nov 2023 13:17:39 -0500 Subject: [PATCH] Don't show avatar if null, redirect to settings on login --- src/components/CurrentAccount.tsx | 10 ++++++---- src/routes/Redirect.tsx | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/CurrentAccount.tsx b/src/components/CurrentAccount.tsx index 9172500..6056012 100644 --- a/src/components/CurrentAccount.tsx +++ b/src/components/CurrentAccount.tsx @@ -22,10 +22,12 @@ export default function CurrentAccount() {
  • - {cachedMe.username} + {cachedMe.avatar != null && ( + {cachedMe.username} + )} {cachedMe.username} diff --git a/src/routes/Redirect.tsx b/src/routes/Redirect.tsx index 2031292..0b9081a 100644 --- a/src/routes/Redirect.tsx +++ b/src/routes/Redirect.tsx @@ -72,7 +72,7 @@ export default function Redirect() { }, []); if (result != null && !result.error) { - navigate("/"); + navigate("/settings"); } return result == null ? (