fix(payment): consume first recharge offer after payment
This commit is contained in:
@@ -174,7 +174,6 @@ describe("subscription screen helpers", () => {
|
||||
expect(
|
||||
getFirstRechargeOfferView({
|
||||
isFirstRecharge: true,
|
||||
discountPercent: 50,
|
||||
vipPlans: vipViews,
|
||||
coinPlans: coinViews,
|
||||
}),
|
||||
@@ -182,6 +181,13 @@ describe("subscription screen helpers", () => {
|
||||
badgeText: "50% OFF",
|
||||
title: "First Recharge Offer",
|
||||
});
|
||||
expect(
|
||||
getFirstRechargeOfferView({
|
||||
isFirstRecharge: false,
|
||||
vipPlans: vipViews,
|
||||
coinPlans: coinViews,
|
||||
}),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("selects the first VIP plan by default when VIP can be purchased", () => {
|
||||
|
||||
Reference in New Issue
Block a user