Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/home #71

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 1 addition & 2 deletions src/Components/DOM/VoteStatusButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function VoteStatusButton(props){

const fetchVoteStatus = async () => {
let textMath = voteStatusButton.textMath;
let tsrcPRStatusComponent
let tsrcPRStatusComponent;
try {
tsrcPRStatusComponent = await postGetPullRequest(
user,
Expand Down Expand Up @@ -63,7 +63,6 @@ export default function VoteStatusButton(props){
setVoteNoTotalState(voteNoTotal);
setTsrcPRStatus(tsrcPRStatusComponent);
} catch (error) {
console.log('fetchVoteStatus error:', error)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe VoteStatusButton is outside of the scope of refactoring the extension Home page, also the console log is fine if it is console logging an error in a trycatch

textMath = "";
}
};
Expand Down
Loading