From 16317a5c011bb340f39b9641aea2ea0ce548bda3 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Wed, 3 Aug 2022 15:07:55 -0400 Subject: ok some final refactoring --- src/client/util/ReportManager.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/client/util/ReportManager.tsx b/src/client/util/ReportManager.tsx index 54208db84..128d58d88 100644 --- a/src/client/util/ReportManager.tsx +++ b/src/client/util/ReportManager.tsx @@ -34,7 +34,7 @@ export class ReportManager extends React.Component<{}> { ReportManager.Instance = this; this.octokit = new Octokit({ - auth: '' + auth: 'auth key' }); } @@ -48,8 +48,6 @@ export class ReportManager extends React.Component<{}> { private formatTitle = (title: string, userEmail: string) => `${title} - ${userEmail.replace('@brown.edu', '')}`; public async reportBug() { - console.log('Reporting bug', this.bugTitle, this.bugDescription); - if (this.toGithub) { const req = await this.octokit.request('POST /repos/{owner}/{repo}/issues', { owner: 'brown-dash', @@ -69,7 +67,7 @@ export class ReportManager extends React.Component<{}> { } } else { - // if not going to github, not sure what to do yet... + // if not going to github issues, not sure what to do yet... } // if we're down here, then we're good to go. @@ -92,7 +90,7 @@ export class ReportManager extends React.Component<{}> {
this.bugTitle = e.target.value} />
- +