Fix notifications screen on mobile

This commit is contained in:
Bruno Lemos
2018-10-09 03:34:14 -03:00
parent 84b98127e8
commit b8f1c7e50b

View File

@@ -19,12 +19,9 @@ export default class NotificationsScreen extends PureComponent<
return (
<Screen>
<UserConsumer>
{({ user }) =>
!(user && user.accessToken) ? null : (
<NotificationCardsContainer
accessToken={user.accessToken}
swipeable
/>
{({ accessToken }) =>
!!accessToken && (
<NotificationCardsContainer accessToken={accessToken} swipeable />
)
}
</UserConsumer>