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
This commit is contained in:
M Fahru
2025-08-19 09:45:49 -07:00
committed by Copybot
parent 2389674cca
commit aab4b06f03
@@ -118,7 +118,7 @@ const recurlyPlanCodeToPlanTypeAndPeriod = {
/**
* @param {RecurlyPlanCode} recurlyPlanCode
* @returns {PlanTypeAndPeriod}
* @returns {PlanTypeAndPeriod | undefined}
*/
function getPlanTypeAndPeriodFromRecurlyPlanCode(recurlyPlanCode) {
return recurlyPlanCodeToPlanTypeAndPeriod[recurlyPlanCode]