Skip to content

Commit d22747b

Browse files
committed
Only do this if no user is in the state already
1 parent e20a768 commit d22747b

File tree

1 file changed

+1
-1
lines changed
  • resources/scripts/components

1 file changed

+1
-1
lines changed

resources/scripts/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface WindowWithUser extends Window {
2323

2424
const App = () => {
2525
const data = (window as WindowWithUser).PterodactylUser;
26-
if (data) {
26+
if (data && !store.getState().user.data) {
2727
store.getActions().user.setUserData({
2828
uuid: data.uuid,
2929
username: data.username,

0 commit comments

Comments
 (0)