- {{ props.user.display_name }} + {{ getDisplayName(props.user) }}
{{ props.user.username }}
@@ -22,8 +21,6 @@
+
+
\ No newline at end of file
diff --git a/composables/api.ts b/composables/api.ts
index 0b438a6..75a3811 100644
--- a/composables/api.ts
+++ b/composables/api.ts
@@ -1,24 +1,36 @@
import type { ChannelResponse, GuildMemberResponse, GuildResponse, MessageResponse, StatsResponse, UserResponse } from "~/types/interfaces";
+function ensureIsArray(list: any) {
+ if (Array.isArray(list)) {
+ return list
+ } else {
+ return []
+ }
+}
+
export const useApi = () => {
- async function fetchGuilds(): Promise