Skip to content

Commit

Permalink
fix(friends): show error toast if friend request not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwoodland committed May 30, 2022
1 parent 9a357e4 commit 81c1f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/views/friends/friend/Friend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default Vue.extend({
})
} catch (e: any) {
this.loadCheck = false
throw new Error(e)
this.$toast.error(this.$t('errors.friends.request_not_found') as string)
} finally {
this.loadCheck = false
this.loading = AddFriendEnum.EMPTY
Expand Down
1 change: 1 addition & 0 deletions locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ export default {
friends: {
request_already_sent: 'You have already sent a request to this user',
request_already_accepted: 'This user is already in your friends',
request_not_found: 'Friend request not found',
friend_info_not_found: 'Seems that this user is not registered',
textile_not_initialized: 'Your account is not ready. Try later',
friend_not_removed: 'Could not remove friend',
Expand Down

0 comments on commit 81c1f3c

Please sign in to comment.