mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
mobile: fix trial expired notice shows to new users
This commit is contained in:
@@ -277,7 +277,6 @@ const ChooseTheme = () => {
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
maxHeight: 170,
|
||||
alignItems: "center",
|
||||
marginTop: 20
|
||||
}}
|
||||
@@ -295,7 +294,7 @@ const ChooseTheme = () => {
|
||||
Pick a theme of your choice
|
||||
</Paragraph>
|
||||
<Seperator />
|
||||
<AccentColorPicker settings={false} />
|
||||
<AccentColorPicker />
|
||||
<Seperator />
|
||||
</View>
|
||||
);
|
||||
|
||||
@@ -319,7 +319,8 @@ const subscriptions = {
|
||||
|
||||
async function getRemainingTrialDaysStatus() {
|
||||
let user = await db.user.getUser();
|
||||
if (!user) return false;
|
||||
if (!user || !user.subscription || user.subscription?.expiry === 0) return;
|
||||
|
||||
let premium = user.subscription.type !== SUBSCRIPTION_STATUS.BASIC;
|
||||
let isTrial = user.subscription.type === SUBSCRIPTION_STATUS.TRIAL;
|
||||
let total = user.subscription.expiry - user.subscription.start;
|
||||
|
||||
Reference in New Issue
Block a user