friend search widget separated

This commit is contained in:
Mikayla Dobson
2022-12-08 17:55:55 -06:00
parent c4a8208d8a
commit bea17aa58b
9 changed files with 123 additions and 69 deletions

View File

@@ -47,7 +47,7 @@ export default class UserCtl {
async getFriends(id: number | string) {
try {
const result = await UserInstance.getFriends(id);
if (!result) throw createError(404, "You have no friends");
if (!result) return createError(404, "You have no friends");
return result;
} catch (e: any) {
throw new Error(e);