Skip 'install/new' if web already exists

## Issue
Part of 385 "Defer api.odysee.com calls to their respective pages / install new"
This commit is contained in:
infinite-persistence 2022-01-03 17:12:18 +08:00 committed by Thomas Zarebczan
parent 1f5f8f1213
commit d03f80c6b1

View file

@ -127,7 +127,7 @@ export function doAuthenticate(
if (shareUsageData) { if (shareUsageData) {
dispatch(doRewardList()); dispatch(doRewardList());
dispatch(doFetchInviteStatus(false)); dispatch(doFetchInviteStatus(false));
if (callInstall) { if (callInstall && !user?.device_types?.includes('web')) {
doInstallNew(appVersion, callbackForUsersWhoAreSharingData, DOMAIN); doInstallNew(appVersion, callbackForUsersWhoAreSharingData, DOMAIN);
} }
} }