From d3269e002f3409cf5b16ef7d1bdaeb11e682d98f Mon Sep 17 00:00:00 2001 From: isra el Date: Tue, 18 Mar 2025 08:01:25 +0300 Subject: [PATCH] fix(web): show current active subscription status in my-account correctly --- .../(components)/account-settings.tsx | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/web/app/(app)/dashboard/(components)/account-settings.tsx b/web/app/(app)/dashboard/(components)/account-settings.tsx index 16590a6..bdde2fc 100644 --- a/web/app/(app)/dashboard/(components)/account-settings.tsx +++ b/web/app/(app)/dashboard/(components)/account-settings.tsx @@ -268,10 +268,33 @@ export default function AccountSettings() { )} -
- - - Active +
+ + + {currentSubscription?.status + ? currentSubscription.status + .split('_') + .map(word => word.charAt(0).toUpperCase() + word.slice(1)) + .join(' ') + : 'Active'}