Skip to content

Commit

Permalink
fix: when the error clears, make sure the state clears the error vari…
Browse files Browse the repository at this point in the history
…able.
  • Loading branch information
Joel Worrall committed Sep 2, 2020
1 parent 1d8df9c commit a67ccde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerdlets/github-about/pull-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class PullRequests extends React.PureComponent {
let pullRequests = null;
try {
pullRequests = await github.get(path);
this.setState({ pullRequests });
this.setState({ pullRequests, error: null });
} catch (e) {
const error =
pullRequests && pullRequests.message
Expand Down

0 comments on commit a67ccde

Please sign in to comment.