Skip to content

chore: Fixed the success message on sign-in #738

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: Fixed the success message on sign-in
  • Loading branch information
AdityaPrakash-26 committed Sep 18, 2021
commit 1e3e2a27f8a9fc25c7b04242760e43662fb71414
2 changes: 1 addition & 1 deletion src/leetCodeManager.ts
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ class LeetCodeManager extends EventEmitter {
throw new Error(`The login method "${loginMethod}" is not supported.`);
}
const isByCookie: boolean = loginMethod === "Cookie";
const inMessage: string = isByCookie ? "sign in by cookie" : "sign in";
const inMessage: string = isByCookie ? "signed in by cookie" : "signed in";
try {
const userName: string | undefined = await new Promise(async (resolve: (res: string | undefined) => void, reject: (e: Error) => void): Promise<void> => {