potential fix for #536

This commit is contained in:
Jeremy Kauffman 2017-09-06 16:20:05 -04:00
parent be95ebf916
commit eafd1c9143

View file

@ -37,8 +37,8 @@ export function doClaimRewardType(rewardType) {
reward = rewardsByType[rewardType],
userIsRewardApproved = selectUserIsRewardApproved(state);
if (reward.transaction_id) {
//already claimed, do nothing
if (!reward || reward.transaction_id) {
//already claimed or doesn't exist, do nothing
return;
}