fix: broken settings page

This commit is contained in:
nate 2026-03-24 21:49:17 +04:00
parent b987024f9d
commit 0b1ffa8b3b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
<div class="mt-4 pt-4 border-t divider text-xs text-gray-500">
<%= planLabel %> expires <%= new Date(it.account.plan_expires_at).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) %>.
<a href="/dashboard/checkout" class="text-blue-400 hover:text-blue-300 ml-1">Extend or upgrade to Lifetime</a>
<% const stack = it.account.plan_stack || [];
<% const stack = typeof it.account.plan_stack === 'string' ? JSON.parse(it.account.plan_stack) : (it.account.plan_stack || []);
if (stack.length > 0) {
const planNames = { free: 'Free', pro: 'Pro', pro2x: 'Pro 2x', pro4x: 'Pro 4x', lifetime: 'Lifetime' };
const parts = stack.map(function(s) {