Skip to content

Commit cda2414

Browse files
authored
fix: update Checkout page for experiment to remove the sash and use the banner (#4633)
1 parent eb134fd commit cda2414

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/checkout/CheckoutForm.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const CheckoutForm: FC = () => {
5151
handleSubmit,
5252
setIsDirty,
5353
isSubmitting,
54-
isPaygCreditActive,
5554
} = useContext(CheckoutContext)
5655

5756
const onSubmit = () => {
@@ -79,7 +78,7 @@ const CheckoutForm: FC = () => {
7978
>
8079
Upgrade to Usage-Based Account
8180
</h1>
82-
{isFlagEnabled('credit250Experiment') && !isPaygCreditActive && (
81+
{isFlagEnabled('credit250Experiment') && (
8382
<GoogleOptimizeExperiment
8483
experimentID={CREDIT_250_EXPERIMENT_ID}
8584
variants={[
@@ -118,21 +117,6 @@ const CheckoutForm: FC = () => {
118117
</SafeBlankLink>
119118
.
120119
</p>
121-
122-
{isPaygCreditActive && (
123-
<GoogleOptimizeExperiment
124-
experimentID={CREDIT_250_EXPERIMENT_ID}
125-
variants={[
126-
<div
127-
className="checkout-form--banner"
128-
key="checkout-form-banner"
129-
>
130-
<strong className="checkout-banner--credit">$250</strong>
131-
<p>credit applied</p>
132-
</div>,
133-
]}
134-
/>
135-
)}
136120
</Panel.Body>
137121
</Panel>
138122
<Panel>

0 commit comments

Comments
 (0)