Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

show subscribed button if user is subscribed already

ammarahm-ede18390c3a393
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index 238fda4b1..6025bfd90 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -249,8 +249,8 @@ export const Settings = ({navigation}) => {
<ScrollView
onScroll={e =>
eSendEvent(eScrollEvent, {
- y:e.nativeEvent.contentOffset.y,
- screen:"Settings"
+ y: e.nativeEvent.contentOffset.y,
+ screen: 'Settings',
})
}
scrollEventThrottle={1}
@@ -765,13 +765,15 @@ const SettingsUserSection = () => {
</View>
{user?.subscription?.provider &&
+ user.subscription.type !== 6 &&
+ user.subscription.type !== 7 &&
+ user.subscription.type !== 0 &&
SUBSCRIPTION_PROVIDER[user?.subscription?.provider] ? (
<Button
title={
SUBSCRIPTION_PROVIDER[user?.subscription?.provider]?.title
}
onPress={() => {
- console.log('opening');
eSendEvent(eOpenProgressDialog, {
title:
SUBSCRIPTION_PROVIDER[user?.subscription?.provider]