Merged in fix/SW-3608-make-user-properties-optional (pull request #3133)
fix(SW-3608): make user properties, that are based on audience, optional * fix(SW-3608): make user properties, that are based on audience, optional * fix(SW-3608): make user properties, that are based on audience, optional * . Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -23,7 +23,7 @@ export function getFriendsMembership(userLoyalty: UserLoyalty) {
|
||||
|
||||
if (!friendsMembership) return null
|
||||
|
||||
const pointExpiration = loyalty.pointExpirations
|
||||
const pointExpiration = (loyalty.pointExpirations ?? [])
|
||||
.sort(
|
||||
(a, b) => new Date(a.expires).getTime() - new Date(b.expires).getTime()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user