check for device_types
This commit is contained in:
parent
2944ed3664
commit
a8707405ad
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ function OpenInAppLink(props: Props) {
|
|||
const hasSrcParam = params.get('src');
|
||||
const initialShouldShowNag = hasSrcParam && (isAndroid || isDesktop);
|
||||
const isWebUserOnly =
|
||||
user && !user.device_types.some(usedDevice => usedDevice === 'mobile' || usedDevice === 'desktop');
|
||||
user &&
|
||||
user.device_types &&
|
||||
!user.device_types.some(usedDevice => usedDevice === 'mobile' || usedDevice === 'desktop');
|
||||
const [hideNagForGood, setHideNagForGood] = userPersistedState('open-in-app-nag', false);
|
||||
const [showNag, setShowNag] = React.useState(initialShouldShowNag);
|
||||
let appLink = uri;
|
||||
|
|
Loading…
Reference in a new issue