Skip to content

Commit

Permalink
Merge pull request #4742 from HedvigInsurance/09-18-remove_insurely_n…
Browse files Browse the repository at this point in the history
…ative_success_feature_flag

Remove INSURELY_NATIVE_SUCCESS feature flag
  • Loading branch information
alebedev committed Sep 19, 2024
2 parents 092be33 + 9089152 commit 3116b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions apps/store/src/components/PriceCalculator/FetchInsurance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
usePriceIntentInsurelyUpdateMutation,
} from '@/services/graphql/generated'
import { InsurelyIframe, setInsurelyConfig } from '@/services/Insurely/InsurelyIframe'
import { Features } from '@/utils/Features'
import {
dialogContent,
dialogIframeContent,
Expand Down Expand Up @@ -139,10 +138,7 @@ export const FetchInsurance = (props: Props) => {
</Dialog.Window>
</Dialog.Content>
)
} else if (
state === 'COMPARE' ||
(state === 'SUCCESS' && Features.enabled('INSURELY_NATIVE_SUCCESS'))
) {
} else if (state === 'COMPARE') {
content = (
<Dialog.Content className={dialogIframeContent} onClose={dismiss} centerContent={true}>
<Dialog.Window className={dialogIframeWindow}>
Expand All @@ -160,7 +156,7 @@ export const FetchInsurance = (props: Props) => {
</Dialog.Window>
</Dialog.Content>
)
} else if (state === 'SUCCESS' && !Features.enabled('INSURELY_NATIVE_SUCCESS')) {
} else if (state === 'SUCCESS') {
content = (
<Dialog.Content className={dialogContent} onClose={dismiss} centerContent={true}>
<Dialog.Window className={dialogWindow}>
Expand Down
1 change: 0 additions & 1 deletion apps/store/src/utils/Features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const config = {
INSURELY: process.env.NEXT_PUBLIC_FEATURE_INSURELY === 'true',
SAS_PARTNERSHIP: process.env.NEXT_PUBLIC_FEATURE_SAS_PARTNERSHIP === 'true',
INSURELY_CAR: process.env.NEXT_PUBLIC_FEATURE_INSURELY_CAR === 'true',
INSURELY_NATIVE_SUCCESS: process.env.NEXT_PUBLIC_FEATURE_INSURELY_NATIVE_SUCCESS === 'true',
CUSTOM_CHAT: process.env.NEXT_PUBLIC_FEATURE_CUSTOM_CHAT === 'true',
MYMONEY: process.env.NEXT_PUBLIC_FEATURE_MYMONEY === 'true',
CROSS_SELL_CARD_V2: process.env.NEXT_PUBLIC_CROSS_SELL_CARD_V2 === 'true',
Expand Down

0 comments on commit 3116b92

Please sign in to comment.