@merkl/api 0.10.189 → 0.10.190
Sign up to get free protection for your applications and to get access to all the features.
@@ -196,7 +196,7 @@ export class RewardService {
|
|
196
196
|
throw new Error(`Chain ${chainId} not found`);
|
197
197
|
const chainRewards = rewards.filter(reward => reward.RewardToken.chainId === chainId);
|
198
198
|
/** Check when the last claim happened */
|
199
|
-
if (
|
199
|
+
if (chain.id === connectedChainId && chainRewards.length > 0) {
|
200
200
|
promises.push(RewardService.checkLastClaim(chainId, user, merkleRoots[index], chainRewards).then(r => {
|
201
201
|
return { chain, rewards: r };
|
202
202
|
}));
|