fix default plan selection in account subscription

This commit is contained in:
Nuwan 2024-04-05 19:36:44 +05:30
parent 7b0d6c153e
commit af1140fa05
1 changed files with 1 additions and 1 deletions

View File

@ -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]);