Skip to content

Commit

Permalink
style: yarn run format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengGeng97 committed Jun 15, 2021
1 parent eef9d1d commit 38ab4cd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/pages/githubAssessments/GitHubAssessmentWorkspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,10 @@ const GitHubAssessmentWorkspace: React.FC<GitHubAssessmentWorkspaceProps> = prop
if (octokit === undefined) return;

const missionDataPromise = getMissionData(missionRepoData, octokit);
const isTeacherModePromise = octokit.users
.getAuthenticated()
.then((authenticatedUser: any) => {
const userLogin = authenticatedUser.data.login;
return userLogin === missionRepoData.repoOwner;
});
const isTeacherModePromise = octokit.users.getAuthenticated().then((authenticatedUser: any) => {
const userLogin = authenticatedUser.data.login;
return userLogin === missionRepoData.repoOwner;
});

const promises = [missionDataPromise, isTeacherModePromise];

Expand Down

0 comments on commit 38ab4cd

Please sign in to comment.