[Glitch] Fix Web UI trying to save user settings when logged out
Port 66906a1bc1
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
061464a563
commit
7b078b46a2
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export function changeSetting(path, value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const debouncedSave = debounce((dispatch, getState) => {
|
const debouncedSave = debounce((dispatch, getState) => {
|
||||||
if (getState().getIn(['settings', 'saved'])) {
|
if (getState().getIn(['settings', 'saved']) || !getState().getIn(['meta', 'me'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue