Skip to content

Commit a3aa0d6

Browse files
committed
remove reward condition update
1 parent 8ceb2ed commit a3aa0d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cartridges/int_zinrelo_sfra/cartridge/scripts/helpers/zinreloHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function removeRewardsFromProfile(rewardInfo) {
143143
var profileRewardList = JSON.parse(profileReward);
144144

145145
profileRewardList.forEach(function (reward, index) {
146-
if (reward && rewardInfo && reward.reward_id && rewardInfo.reward_id) {
146+
if (reward && rewardInfo && reward.reward_id && rewardInfo.reward_id && reward.reward_id === rewardInfo.reward_id) {
147147
profileRewardList.splice(index, 1);
148148
}
149149
});

0 commit comments

Comments
 (0)