Skip to content

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

fix: handle case where updateUrl & cancelUrl is null

thecodrreb27d363ec12
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index a8dc4f653..e5e539644 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -42,7 +42,7 @@
color: var(--fontTertiary) !important;
}
-tox-tbtn tox-tbtn--select {
+.tox-tbtn .tox-tbtn--select {
border-radius: 5px !important;
}
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.js
index c1c96e5fc..2659448d4 100644
--- a/apps/web/src/views/settings.js
+++ b/apps/web/src/views/settings.js
@@ -765,6 +765,11 @@ function AccountStatus(props) {
<Button
variant="list"
onClick={async () => {
+ if (!user.subscription.updateURL)
+ return showToast(
+ "error",
+ "Failed to update. Please reach out to us at [email protected] so we can help you resolve the issue."
+ );
await openPaddleDialog(user.subscription.updateURL);
}}
>
@@ -777,6 +782,11 @@ function AccountStatus(props) {
variant="list"
sx={{ ":hover": { borderColor: "error" } }}
onClick={async () => {
+ if (!user.subscription.cancelURL)
+ return showToast(
+ "error",
+ "Failed to cancel subscription. Please reach out to us at [email protected] so we can help you resolve the issue."
+ );
await openPaddleDialog(user.subscription.cancelURL);
}}
>