check for device_types

This commit is contained in:
Sean Yesmunt 2019-12-06 16:30:33 -05:00
parent 2944ed3664
commit a8707405ad

View file

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