From d22747b0b1c4151d9f7d846c2ab5ba424b833871 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 22 Jun 2019 17:07:54 -0700 Subject: [PATCH] Only do this if no user is in the state already --- resources/scripts/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/components/App.tsx b/resources/scripts/components/App.tsx index e870787dd..2512d368d 100644 --- a/resources/scripts/components/App.tsx +++ b/resources/scripts/components/App.tsx @@ -23,7 +23,7 @@ interface WindowWithUser extends Window { const App = () => { const data = (window as WindowWithUser).PterodactylUser; - if (data) { + if (data && !store.getState().user.data) { store.getActions().user.setUserData({ uuid: data.uuid, username: data.username,