fix: dont request cms rewards if we have no reward ids

fixes a cache issue since we have no keys to cache on
This commit is contained in:
Christian Andolf
2025-04-22 10:52:05 +02:00
parent 8a68a79ac4
commit 55b255d36b

View File

@@ -156,6 +156,10 @@ export async function getCachedAllTierRewards(token: string) {
}
export async function getCmsRewards(lang: Lang, rewardIds: string[]) {
if (!rewardIds.length) {
return null
}
const tags = rewardIds.map((id) =>
generateLoyaltyConfigTag(lang, "reward", id)
)