Merged in fix/dont-request-cms-with-no-reward-ids (pull request #1836)
fix: dont request cms rewards if we have no reward ids Approved-by: Linus Flood
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