refactor(github): replace generateRequest with $.http

This commit is contained in:
Ali BARIN
2022-10-20 20:15:15 +02:00
parent 45bf274dc0
commit 1613ab503c
3 changed files with 2 additions and 34 deletions

View File

@@ -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;
}