We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ceb2ed commit a3aa0d6Copy full SHA for a3aa0d6
1 file changed
cartridges/int_zinrelo_sfra/cartridge/scripts/helpers/zinreloHelpers.js
@@ -143,7 +143,7 @@ function removeRewardsFromProfile(rewardInfo) {
143
var profileRewardList = JSON.parse(profileReward);
144
145
profileRewardList.forEach(function (reward, index) {
146
- if (reward && rewardInfo && reward.reward_id && rewardInfo.reward_id) {
+ if (reward && rewardInfo && reward.reward_id && rewardInfo.reward_id && reward.reward_id === rewardInfo.reward_id) {
147
profileRewardList.splice(index, 1);
148
}
149
});
0 commit comments