From 19b88383dbd905826b718fbce6f4b78c984f4582 Mon Sep 17 00:00:00 2001 From: Troy Sankey Date: Wed, 24 Jul 2024 14:45:52 -0700 Subject: [PATCH] fix: use correct late redemption enablement key Renames: `isLateRedemptionEnabled` -> `isLateRedemptionAllowed` I can't quite fathom how this was wrong, but it's abundantly clear in the API serializer that the correct value should be `isLateRedemptionAllowed`. ENT-9259 --- src/components/app/data/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/app/data/utils.js b/src/components/app/data/utils.js index 97e6847a30..39b09164d3 100644 --- a/src/components/app/data/utils.js +++ b/src/components/app/data/utils.js @@ -438,10 +438,10 @@ export function getLateRedemptionBufferDays(redeemablePolicies) { return undefined; } const anyPolicyHasLateRedemptionEnabled = redeemablePolicies.some((policy) => ( - // is_late_redemption_enabled=True on the serialized policy represents the fact that late + // is_late_redemption_allowed=True on the serialized policy represents the fact that late // redemption has been temporarily enabled by an operator for the policy. It will toggle // itself back to False after a finite period of time. - policy.isLateRedemptionEnabled + policy.isLateRedemptionAllowed )); const isEnrollableBufferDays = anyPolicyHasLateRedemptionEnabled ? LATE_ENROLLMENTS_BUFFER_DAYS : undefined; return isEnrollableBufferDays;