Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 432a4a4

Browse files
authored
fix: fix getting b2c subscriptions flag for stage (#290)
1 parent 754fdf5 commit 432a4a4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ subscribe(APP_READY, () => {
4949
<Header />
5050
<main>
5151
<Switch>
52-
{getConfig().ENABLE_B2C_SUBSCRIPTIONS === 'true' ? (
52+
{getConfig().ENABLE_B2C_SUBSCRIPTIONS?.toLowerCase() === 'true' ? (
5353
<Route
5454
path="/manage-subscriptions"
5555
component={ManageSubscriptionsPage}

src/orders-and-subscriptions/OrdersAndSubscriptionsPage.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const OrdersAndSubscriptionsPage = () => {
1313
const intl = useIntl();
1414
const dispatch = useDispatch();
1515
const loading = useSelector(loadingSelector);
16-
const isB2CSubsEnabled = JSON.parse(
17-
getConfig().ENABLE_B2C_SUBSCRIPTIONS ?? 'false',
18-
);
16+
const isB2CSubsEnabled = getConfig().ENABLE_B2C_SUBSCRIPTIONS?.toLowerCase() === 'true';
1917

2018
useEffect(() => {
2119
if (isB2CSubsEnabled) {

0 commit comments

Comments
 (0)