diff --git a/src/index.jsx b/src/index.jsx index 9e2c0ae1..01d44fb1 100755 --- a/src/index.jsx +++ b/src/index.jsx @@ -49,7 +49,7 @@ subscribe(APP_READY, () => {
- {getConfig().ENABLE_B2C_SUBSCRIPTIONS === 'true' ? ( + {getConfig().ENABLE_B2C_SUBSCRIPTIONS?.toLowerCase() === 'true' ? ( { const intl = useIntl(); const dispatch = useDispatch(); const loading = useSelector(loadingSelector); - const isB2CSubsEnabled = JSON.parse( - getConfig().ENABLE_B2C_SUBSCRIPTIONS ?? 'false', - ); + const isB2CSubsEnabled = getConfig().ENABLE_B2C_SUBSCRIPTIONS?.toLowerCase() === 'true'; useEffect(() => { if (isB2CSubsEnabled) {