Skip to content

Commit 58775ad

Browse files
fix(payments-next): Update offers length Sentry error
Because: * 0 and 1 are expected, more than 1 isnt. Right now, Sentry reports an issue when offers.length is not 1. This commit: * Changes if (offers.length !== 1) { to if (offers.length > 1
1 parent 0f7b41b commit 58775ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • libs/shared/cms/src/lib/queries/cancel-interstitial-offer

libs/shared/cms/src/lib/queries/cancel-interstitial-offer/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class CancelInterstitialOfferUtil {
1313
getTransformedResult(): CancelInterstitialOfferTransformed | undefined {
1414
const offers = this.rawResult?.cancelInterstitialOffers ?? [];
1515

16-
if (offers.length !== 1) {
16+
if (offers.length > 1) {
1717
Sentry.captureMessage(
1818
'Unexpected number of cancel interstitial offers found for api identifier, intervals, and locale',
1919
{ extra: { cancelInterstitialOffersCount: offers.length } }

0 commit comments

Comments
 (0)