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:
10
apps/scandic-web/utils/sas.ts
Normal file
10
apps/scandic-web/utils/sas.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { EurobonusMembership } from "@scandic-hotels/trpc/types/user"
|
||||
|
||||
/**
|
||||
* Get SAS tier expiration date, checking boostedTierExpires first, then falling back to tierExpires
|
||||
*/
|
||||
export function getSasTierExpirationDate(
|
||||
sasMembership: EurobonusMembership
|
||||
): string | null {
|
||||
return sasMembership.boostedTierExpires || sasMembership.tierExpires
|
||||
}
|
||||
Reference in New Issue
Block a user