This commit is contained in:
EETagent 2022-12-02 15:45:27 +01:00
parent cae9e387b9
commit 919b44fd2a

View file

@ -6,7 +6,7 @@ export async function apiWhoami(): Promise<string> {
try { try {
const res = await axios.get(`${API_URL}/whoami`); const res = await axios.get(`${API_URL}/whoami`);
return res.data; return res.data;
} catch (e) { } catch (e: any) {
throw errorHandler(e, 'Whoami failed'); throw errorHandler(e, 'Whoami failed');
} }
} }