Merged in fix/LOY-439-boosted-by-sas-bug (pull request #3047)
fix(LOY-439): fix "boosted by sas" issue * fix(LOY-439): fix "boosted by sas" issue Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -5,7 +5,10 @@ import DiamondAddIcon from "@scandic-hotels/design-system/Icons/DiamondAddIcon"
|
||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||
import SkeletonShimmer from "@scandic-hotels/design-system/SkeletonShimmer"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
import { getEurobonusMembership } from "@scandic-hotels/trpc/routers/user/helpers"
|
||||
import {
|
||||
getEurobonusMembership,
|
||||
isBoostedBySas,
|
||||
} from "@scandic-hotels/trpc/routers/user/helpers"
|
||||
|
||||
import {
|
||||
SAS_EUROBONUS_TIER_TO_NAME_MAP,
|
||||
@@ -346,7 +349,7 @@ function calculateMatchState(loyalty: UserLoyalty): MatchState {
|
||||
if (eurobonusMembership?.boostedByScandic) return "boostedByScandic"
|
||||
|
||||
if (!loyalty.tierBoostedBy) return "noBoost"
|
||||
if (loyalty.tierBoostedBy === "SAS_EB") return "boostedBySAS"
|
||||
if (isBoostedBySas(loyalty)) return "boostedBySAS"
|
||||
|
||||
return "noBoost"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user