diff --git a/components/Guild/MemberEntry.vue b/components/Guild/MemberEntry.vue index 4177ca2..0c82d61 100644 --- a/components/Guild/MemberEntry.vue +++ b/components/Guild/MemberEntry.vue @@ -18,12 +18,10 @@ const props = defineProps<{ const modalPopupVisible = ref(false); function showModalPopup() { - console.log("hello there") modalPopupVisible.value = true } function hideModalPopup() { - console.log("gone") modalPopupVisible.value = false } diff --git a/components/Me/AddFriend.vue b/components/Me/AddFriend.vue index 6d2d888..43249fb 100644 --- a/components/Me/AddFriend.vue +++ b/components/Me/AddFriend.vue @@ -23,9 +23,11 @@ async function sendRequest() { try { await addFriend(inputField.value.value) alert("Friend request sent!") - } catch { - alert("Request failed :(") - } + } catch (error: any) { + if (error?.response?.status !== 200) { + alert(`error ${error?.response?.status} met whilst trying to add friend\n"${error?.response._data?.message}"`) + } + } } } diff --git a/components/Modal/ProfilePopup.vue b/components/Modal/ProfilePopup.vue index b4bc804..ac97e19 100644 --- a/components/Modal/ProfilePopup.vue +++ b/components/Modal/ProfilePopup.vue @@ -69,7 +69,6 @@ const props = defineProps void }>(); -const friendsSinceRequest = await getFriendsSince(props.profile) const me = await fetchMe() as UserResponse const displayName = getDisplayName(props.profile) @@ -79,7 +78,7 @@ const aboutMe = getAboutMe(props.profile) const registrationDate = getRegistrationDate(props.profile) const joinDate = getGuildJoinDate(props.profile) -const friendsSince = friendsSinceRequest +const friendsSince = await getFriendsSince(props.profile) const uuid = getUuid(props.profile) @@ -96,8 +95,10 @@ async function buttonAddFriend() { try { await addFriend(username) alert("sent!") - } catch { - alert("failed :(") + } catch (error: any) { + if (error?.response?.status !== 200) { + alert(`error ${error?.response?.status} met whilst trying to add friend\n"${error?.response._data?.message}"`) + } } } @@ -165,7 +166,6 @@ function buttonEditProfile() { #display-name { font-weight: 800; font-size: 2em; - } #username-and-pronouns { @@ -235,6 +235,7 @@ function buttonEditProfile() { .date-entry-title { font-size: .8em; } + .date-entry-value { font-size: 1em; }