mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
update: flip localStorage check after browser check.
This commit is contained in:
@@ -492,12 +492,12 @@ export async function checkForMissingPaymentMethod() {
|
||||
|
||||
// Display upgrade banner for new users after 1 week for 30 days
|
||||
export async function checkForNewDevUpgradePro(org: Organization) {
|
||||
// already dismissed by user!
|
||||
if (localStorage.getItem('newDevUpgradePro')) return;
|
||||
|
||||
// browser or plan check.
|
||||
if (!browser || org?.billingPlan !== BillingPlan.FREE) return;
|
||||
|
||||
// already dismissed by user!
|
||||
if (localStorage.getItem('newDevUpgradePro')) return;
|
||||
|
||||
// saves one trip to backend!
|
||||
const notValidKey = `${org.$id}:isNotValid`;
|
||||
if (localStorage.getItem(notValidKey)) return;
|
||||
|
||||
Reference in New Issue
Block a user