Skip to content

Commit

Permalink
fix ref reward
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamperoyge committed Apr 24, 2024
1 parent fd2867a commit be2f425
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const ReferralRewardsComponent = ({ referralItemData, setReferralItemData }) =>
setReferralItemData((prev) => {
const filteredRewards =
prev?.rewards?.filter((i) => {
if (i.type === PAYMENT_OPTIONS.TOKEN) {
if (i.type === PAYMENT_OPTIONS.TOKEN && i.scheme === scheme) {
return i.paymentMethodId !== reward.paymentMethod?.id;
}
return true;
Expand Down

0 comments on commit be2f425

Please sign in to comment.