Skip to content

Commit

Permalink
Merge pull request #4865 from HedvigInsurance/10-17-add_seperate_feat…
Browse files Browse the repository at this point in the history
…ure_flag_for_quickpurchasev2

Add seperate feature flag for QuickPurchaseV2
  • Loading branch information
gustaveen authored Oct 17, 2024
2 parents f7b5e27 + 5feb102 commit 1e663a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/store/src/blocks/QuickPurchaseBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type QuickPurchaseBlockProps = SbBaseBlockProps<{
}>

export const QuickPurchaseBlock = ({ blok, nested }: QuickPurchaseBlockProps) => {
if (Features.enabled('PRICE_CALCULATOR_PAGE')) {
if (Features.enabled('QUICK_PURCHASE_V2')) {
return (
<QuickPurchaseV2
products={blok.products}
Expand Down
1 change: 1 addition & 0 deletions apps/store/src/utils/Features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const config = {

PRICE_CALCULATOR_PAGE: process.env.NEXT_PUBLIC_FEATURE_PRICE_CALCULATOR_PAGE === 'true',
PRODUCT_PAGE_V2: process.env.NEXT_PUBLIC_FEATURE_PRODUCT_PAGE_V2 === 'true',
QUICK_PURCHASE_V2: process.env.NEXT_PUBLIC_FEATURE_QUICK_PURCHASE_V2 === 'true',
WIDGET_FEATURE_HOME_TIERS: process.env.NEXT_PUBLIC_WIDGET_FEATURE_HOME_TIERS === 'true',
} as const

Expand Down

0 comments on commit 1e663a0

Please sign in to comment.