mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-28 17:22:47 -03:00
fix: error cuando no hay usuarios pero si htags
This commit is contained in:
@@ -14,8 +14,8 @@ export async function load({ params }) {
|
||||
return error(500, 'No se pudo alcanzar el servidor.');
|
||||
}
|
||||
|
||||
if (usuarios.length == 0) {
|
||||
return error(404, 'No se encontraron usuarios que coinsidan con la busqueda.');
|
||||
if (usuarios.length == 0 && htags.length == 0) {
|
||||
return error(404, 'No se encontraron usuarios ni hashtags que coinsidan con la busqueda.');
|
||||
}
|
||||
return { usuarios, htags };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user