Skip to content

Commit

Permalink
reset error state
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost committed Dec 4, 2018
1 parent f9d2355 commit 94ccbef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/x-gift-article/src/GiftArticle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const withGiftFormActions = withActions(
if (giftCredits > 0 || giftCredits === 0) {
return updaters.setAllowance(giftCredits, monthlyAllowance, nextRenewalDate);
} else {
return { invalidResponseFromApi: true }
return { invalidResponseFromApi: true };
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion components/x-gift-article/src/lib/updaters.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const setAllowance = (giftCredits, monthlyAllowance, nextRenewalDate) =>
return {
giftCredits,
monthlyAllowance,
nextRenewalDateText
nextRenewalDateText,
invalidResponseFromApi: false
};
};

Expand Down

0 comments on commit 94ccbef

Please sign in to comment.