Hid price preselect dropdown when only monthly or yearly are shown

refs PROD-275
This commit is contained in:
Djordje Vlaisavljevic 2023-12-13 16:42:40 +00:00
parent 02e04f06b9
commit b0ac1e9afd

View File

@ -156,9 +156,8 @@ const SignupOptions: React.FC<{
]}
title='Prices available at signup'
/>
{hasPortalImprovements &&
{(hasPortalImprovements && (portalPlans.includes('yearly') && portalPlans.includes('monthly'))) &&
<Select
disabled={(portalPlans.includes('yearly') && portalPlans.includes('monthly')) ? false : true}
options={defaultPlanOptions}
selectedOption={defaultPlanOptions.find(option => option.value === portalDefaultPlan)}
title='Price preselected at signup'