aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/App.tsx
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-06-19 15:46:53 +0100
committerGitHub <noreply@github.com>2024-06-19 15:46:53 +0100
commit80d28ea2dac4adc696b481f5f52e1f3947d7b959 (patch)
treed5686a010e9fb355d27a57e533161822176e3c74 /ui/src/App.tsx
parentfix(gui): add support for checking if the cli is installed on windows (#2162) (diff)
downloadatuin-80d28ea2dac4adc696b481f5f52e1f3947d7b959.zip
feat(gui): cache zustand store in localstorage (#2168)
* fix(gui): use the store to cache week start * feat(gui): cache zustand store in localStorage This means that before we've loaded any data, we can still display something up-to-date. Avoid flashing! I'll probably want to switch this to the tauri sqlite plugin later
Diffstat (limited to 'ui/src/App.tsx')
-rw-r--r--ui/src/App.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/App.tsx b/ui/src/App.tsx
index 9b5242a7..c643720a 100644
--- a/ui/src/App.tsx
+++ b/ui/src/App.tsx
@@ -105,7 +105,7 @@ function App() {
</ul>
</li>
<li className="mt-auto">
- {user && !user.isLoggedIn() && (
+ {user && user.username === "" && !user.username && (
<Dialog>
<DialogTrigger className="w-full">
<Button