From 0d943516a3b1a30cd6176c58a70bb296f2b4c215 Mon Sep 17 00:00:00 2001
From: Matiss Janis Aboltins <matiss@mja.lv>
Date: Mon, 31 Jul 2023 17:59:12 +0100
Subject: [PATCH] :bug:  fix incorrect state slice usage (#1433)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!-- Thank you for submitting a pull request! Make sure to follow the
instructions to write release notes for your PR — it should only take a
minute or two:
https://github.com/actualbudget/docs#writing-good-release-notes -->
---
 packages/desktop-client/src/components/LoggedInUser.js | 2 +-
 upcoming-release-notes/1433.md                         | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 upcoming-release-notes/1433.md

diff --git a/packages/desktop-client/src/components/LoggedInUser.js b/packages/desktop-client/src/components/LoggedInUser.js
index 30fe66b06..65e5460e1 100644
--- a/packages/desktop-client/src/components/LoggedInUser.js
+++ b/packages/desktop-client/src/components/LoggedInUser.js
@@ -12,7 +12,7 @@ import { useServerURL } from './ServerContext';
 import { Tooltip } from './tooltips';
 
 export default function LoggedInUser({ hideIfNoServer, style, color }) {
-  let userData = useSelector(state => state.userData);
+  let userData = useSelector(state => state.user.data);
   let { getUserData, signOut, closeBudget } = useActions();
   let [loading, setLoading] = useState(true);
   let [menuOpen, setMenuOpen] = useState(false);
diff --git a/upcoming-release-notes/1433.md b/upcoming-release-notes/1433.md
new file mode 100644
index 000000000..e428682ac
--- /dev/null
+++ b/upcoming-release-notes/1433.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Fix incorrect state slice path used in top server status pill
-- 
GitLab