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

Commit

Permalink
fix: fix getting b2c subscriptions flag for stage (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
NawfalAhmed authored May 17, 2023
1 parent 754fdf5 commit 432a4a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ subscribe(APP_READY, () => {
<Header />
<main>
<Switch>
{getConfig().ENABLE_B2C_SUBSCRIPTIONS === 'true' ? (
{getConfig().ENABLE_B2C_SUBSCRIPTIONS?.toLowerCase() === 'true' ? (
<Route
path="/manage-subscriptions"
component={ManageSubscriptionsPage}
Expand Down
4 changes: 1 addition & 3 deletions src/orders-and-subscriptions/OrdersAndSubscriptionsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ const OrdersAndSubscriptionsPage = () => {
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) {
Expand Down

0 comments on commit 432a4a4

Please sign in to comment.