Changed signup button text for single-tier-only case

This commit is contained in:
Peter Zimon 2022-05-30 10:38:53 +02:00
parent f1c5647997
commit e320af30ae

View File

@ -602,6 +602,7 @@ function FreeProductCard({products, handleChooseSignup}) {
</div>
{(!hasOnlyFree ?
<div className='gh-portal-btn-product'>
{}
<button
className='gh-portal-btn'
disabled={disabled}
@ -623,6 +624,8 @@ function ProductCard({product, products, selectedInterval, handleChooseSignup})
const {action} = useContext(AppContext);
const cardClass = selectedProduct === product.id ? 'gh-portal-product-card checked' : 'gh-portal-product-card';
const noOfProducts = products.length;
let disabled = (['signup:running', 'checkoutPlan:running'].includes(action)) ? true : false;
if (isCookiesDisabled()) {
@ -659,7 +662,7 @@ function ProductCard({product, products, selectedInterval, handleChooseSignup})
const selectedPrice = getSelectedPrice({products, selectedInterval, selectedProduct: product.id});
handleChooseSignup(e, selectedPrice.id);
}}>
{((selectedProduct === product.id && disabled) ? <LoaderIcon className='gh-portal-loadingicon' /> : 'Choose')}
{((selectedProduct === product.id && disabled) ? <LoaderIcon className='gh-portal-loadingicon' /> : (noOfProducts > 1 ? 'Choose' : 'Continue'))}
</button>
</div>
</div>