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
fix: do not load checkout for logged out users
thecodrrdb3e10bbb0c6
diff --git a/apps/web/src/components/dialogs/buydialog.js b/apps/web/src/components/dialogs/buydialog.jsindex 30e9dbbb1..b6578a588 100644--- a/apps/web/src/components/dialogs/buydialog.js+++ b/apps/web/src/components/dialogs/buydialog.js@@ -379,20 +379,24 @@ function BuyDialog(props) {<TryForFree />)}</Flex>- {selectedPlan ? (- <Checkout- user={user}- plan={selectedPlan}- onCheckoutLoaded={(data) => {- const pricingInfo = getPricingInfoFromCheckout(- selectedPlan,- data- );- console.log(pricingInfo, selectedPlan.coupon);- setDiscount(pricingInfo);- }}- />- ) : plan ? null : (+ {isLoggedIn ? (+ selectedPlan ? (+ <Checkout+ user={user}+ plan={selectedPlan}+ onCheckoutLoaded={(data) => {+ const pricingInfo = getPricingInfoFromCheckout(+ selectedPlan,+ data+ );+ console.log(pricingInfo, selectedPlan.coupon);+ setDiscount(pricingInfo);+ }}+ />+ ) : plan ? null : (+ <FeaturesList />+ )+ ) : (<FeaturesList />)}</Flex>