refactor(github): replace generateRequest with $.http
This commit is contained in:
@@ -4,7 +4,7 @@ import getCurrentUser from '../common/get-current-user';
|
||||
const isStillVerified = async ($: IGlobalVariable) => {
|
||||
try {
|
||||
const user = await getCurrentUser($);
|
||||
return !!user;
|
||||
return !!user.id;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user