Only do this if no user is in the state already
This commit is contained in:
parent
e20a768182
commit
d22747b0b1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ interface WindowWithUser extends Window {
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const data = (window as WindowWithUser).PterodactylUser;
|
const data = (window as WindowWithUser).PterodactylUser;
|
||||||
if (data) {
|
if (data && !store.getState().user.data) {
|
||||||
store.getActions().user.setUserData({
|
store.getActions().user.setUserData({
|
||||||
uuid: data.uuid,
|
uuid: data.uuid,
|
||||||
username: data.username,
|
username: data.username,
|
||||||
|
|
Loading…
Reference in a new issue