A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: refresh user on subscription change
Abdullah Atta11c1fe38535f
diff --git a/apps/web/src/stores/user-store.ts b/apps/web/src/stores/user-store.tsindex e87cbeab0..7b6721944 100644--- a/apps/web/src/stores/user-store.ts+++ b/apps/web/src/stores/user-store.ts@@ -59,6 +59,7 @@ class UserStore extends BaseStore<UserStore> {EV.subscribe(EVENTS.userSubscriptionUpdated, (subscription) => {const wasSubscribed = isUserSubscribed();+ this.refreshUser();this.set((state) => {if (!state.user) return;state.user.subscription = subscription;