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: show billing history even if user is not subscribed
Abdullah Attaeb36c1d7cbbe
diff --git a/apps/web/src/dialogs/settings/components/billing-history.tsx b/apps/web/src/dialogs/settings/components/billing-history.tsxindex 30272c385..cd1f4fe6f 100644--- a/apps/web/src/dialogs/settings/components/billing-history.tsx+++ b/apps/web/src/dialogs/settings/components/billing-history.tsx@@ -49,7 +49,7 @@ export function BillingHistory() {const transactions = await db.subscriptions.transactions();if (!transactions) return;- setTransactions(transactions);+ setTransactions(transactions.filter((c) => !!c.billed_at));} catch (e) {if (e instanceof Error) setError(e);} finally {diff --git a/apps/web/src/dialogs/settings/subscription-settings.ts b/apps/web/src/dialogs/settings/subscription-settings.tsindex c1921a7cf..149a4ac71 100644--- a/apps/web/src/dialogs/settings/subscription-settings.ts+++ b/apps/web/src/dialogs/settings/subscription-settings.ts@@ -244,13 +244,6 @@ export const SubscriptionSettings: SettingsGroup[] = [{key: "billing-history",title: strings.billingHistory(),- isHidden: () => {- const user = useUserStore.getState().user;- return (- user?.subscription.provider !== SubscriptionProvider.PADDLE ||- !isUserSubscribed(user)- );- },components: [{ type: "custom", component: BillingHistory }]}]