@stevederico/skateboard-ui 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/Utilities.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Utilities.js
CHANGED
|
@@ -232,7 +232,13 @@ export function trackUsage(action) {
|
|
|
232
232
|
localStorage.setItem(usageKey, JSON.stringify(usage));
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
export function showUpgradeSheet() {
|
|
235
|
+
export async function showUpgradeSheet() {
|
|
236
|
+
// Check if user is already a subscriber
|
|
237
|
+
const subscriber = await isSubscriber();
|
|
238
|
+
if (subscriber) {
|
|
239
|
+
return; // Don't show upgrade sheet for subscribers
|
|
240
|
+
}
|
|
241
|
+
|
|
236
242
|
// Navigate to subscription page
|
|
237
243
|
window.location.href = '/app/stripe';
|
|
238
244
|
}
|