call preference get for all users

This commit is contained in:
Sean Yesmunt 2019-12-21 13:43:42 -05:00
parent 290acb6247
commit f5d8531b8e

View file

@ -156,6 +156,13 @@ function App(props: Props) {
}
}, [hasVerifiedEmail, signIn, hasSignedIn]);
// @if TARGET='app'
useEffect(() => {
console.log('?');
updatePreferences();
}, []);
// @endif
useEffect(() => {
if (hasVerifiedEmail && syncEnabled) {
checkSync();
@ -169,13 +176,6 @@ function App(props: Props) {
};
}
}, [hasVerifiedEmail, syncEnabled, checkSync]);
// @if TARGET='app'
useEffect(() => {
if (hasVerifiedEmail === false) {
updatePreferences();
}
}, [hasVerifiedEmail]);
// @endif
useEffect(() => {
if (syncError) {