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:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user