From af1140fa05c76743193348f640d29664e59a7d6a Mon Sep 17 00:00:00 2001 From: Nuwan Date: Fri, 5 Apr 2024 19:36:44 +0530 Subject: [PATCH] fix default plan selection in account subscription --- jam-ui/src/components/profile/JKSubscriptionPlan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam-ui/src/components/profile/JKSubscriptionPlan.js b/jam-ui/src/components/profile/JKSubscriptionPlan.js index f4eca88a4..28c61b25b 100644 --- a/jam-ui/src/components/profile/JKSubscriptionPlan.js +++ b/jam-ui/src/components/profile/JKSubscriptionPlan.js @@ -34,7 +34,7 @@ function JKSubscriptionPlan({ userPlan, setUserPlan, getDisplayName }) { useEffect(() => { if (userPlan) { - setValue('plan_code', userPlan.desired_plan_code); + setValue('plan_code', userPlan.desired_plan_code || ""); } }, [userPlan]);