Only do this if no user is in the state already

This commit is contained in:
Dane Everitt 2019-06-22 17:07:54 -07:00
parent e20a768182
commit d22747b0b1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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,