فهرست منبع

Merge pull request #27998 from overleaf/mf-improve-plan-not-found-error-stripe

[web] Return user-readable error message if user visits stripe-based payment page with invalid plan code

GitOrigin-RevId: ad88a7d6698227867874fa0a724142e563d1377c
M Fahru 1 سال پیش
والد
کامیت
aab4b06f03
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/web/app/src/Features/Subscription/PlansLocator.js

+ 1 - 1
services/web/app/src/Features/Subscription/PlansLocator.js

@@ -118,7 +118,7 @@ const recurlyPlanCodeToPlanTypeAndPeriod = {
 
 
 /**
 /**
  * @param {RecurlyPlanCode} recurlyPlanCode
  * @param {RecurlyPlanCode} recurlyPlanCode
- * @returns {PlanTypeAndPeriod}
+ * @returns {PlanTypeAndPeriod | undefined}
  */
  */
 function getPlanTypeAndPeriodFromRecurlyPlanCode(recurlyPlanCode) {
 function getPlanTypeAndPeriodFromRecurlyPlanCode(recurlyPlanCode) {
   return recurlyPlanCodeToPlanTypeAndPeriod[recurlyPlanCode]
   return recurlyPlanCodeToPlanTypeAndPeriod[recurlyPlanCode]