Merged in fix/LOY-358-SAS-expiry-date (pull request #2813)

fix(LOY-358): Proper SAS tier expiration date check

* fix(LOY-358): Proper SAS tier expiration date check


Approved-by: Erik Tiekstra
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-09-18 13:39:37 +00:00
parent 948c86479a
commit cc99f26727
4 changed files with 20 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import { membershipLevels } from "@/constants/membershipLevels"
import MembershipLevelIcon from "@/components/Levels/Icon"
import { getIntl } from "@/i18n"
import { getSasTierExpirationDate } from "@/utils/sas"
import SasBoostStatus from "./SasBoostStatus"
@@ -38,7 +39,9 @@ export default async function MembershipOverviewCard({
: null
const showSasBoostIcon =
sasMembership?.boostedTierExpires && !sasMembership.boostedByScandic
sasMembership &&
getSasTierExpirationDate(sasMembership) &&
!sasMembership.boostedByScandic
return (
<section className={styles.card} aria-labelledby="membership-level">