Skip to content

Commit 98adaba

Browse files
subirjollySubir Jolly
andauthored
fix: add additional check for showing payg experiment (#3302)
* fix: add additional check for showing payg experiment * fix: fix lint issue Co-authored-by: Subir Jolly <subirjolly@Subirs-MacBook-Pro.local>
1 parent d372d7d commit 98adaba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/checkout/CheckoutForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {CheckoutContext} from 'src/checkout/context/checkout'
3232

3333
// Events
3434
import {event} from 'src/cloud/utils/reporting'
35-
import {isFlagEnabled} from 'src/shared/utils/featureFlag'
3635

3736
// Constants
3837
import {PAYG_CREDIT_EXPERIMENT_ID} from 'src/shared/constants'
@@ -46,6 +45,7 @@ const CheckoutForm: FC = () => {
4645
handleSubmit,
4746
setIsDirty,
4847
isSubmitting,
48+
isPaygCreditActive,
4949
} = useContext(CheckoutContext)
5050

5151
const onSubmit = () => {
@@ -92,7 +92,7 @@ const CheckoutForm: FC = () => {
9292
.
9393
</p>
9494

95-
{isFlagEnabled('paygCheckoutCredit') && (
95+
{isPaygCreditActive && (
9696
<GoogleOptimizeExperiment
9797
experimentID={PAYG_CREDIT_EXPERIMENT_ID}
9898
variants={[

0 commit comments

Comments
 (0)