Skip to content

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

fix: do not show cancel subscription button if on trial or beta

thecodrr4f68ff243d93
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.js
index b343aafb5..3e4df1cf8 100644
--- a/apps/web/src/views/settings.js
+++ b/apps/web/src/views/settings.js
@@ -588,11 +588,11 @@ function AccountStatus(props) {
: ""}
</Text>
{subtitle && <Text variant="subBody">{subtitle}</Text>}
- {isBasic || remainingDays <= 0 ? (
+ {isBasic || isTrial || remainingDays <= 0 ? (
<Button mt={2} onClick={showBuyDialog}>
Upgrade to Notesnook Pro
</Button>
- ) : (
+ ) : isPro ? (
<>
<Button
variant="list"
@@ -624,7 +624,7 @@ function AccountStatus(props) {
Purchased on {provider}
</Text>
</>
- )}
+ ) : null}
</AccountStatusContainer>
);
}