Skip to content

Commit

Permalink
これでいけた
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Dec 2, 2023
1 parent 20ed0d5 commit ef46078
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/Modal/GroupCreateModal/GroupCreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const create = async () => {
}
await popModal()
} catch (e) {
if (!(e instanceof AxiosError) || e.response?.status !== 409) {
addErrorToast('グループの作成に失敗しました')
} else {
if (e instanceof AxiosError && e.response?.status === 409) {
addErrorToast('既に同じ名前のグループが存在しています')
} else {
addErrorToast('グループの作成に失敗しました')
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Modal/UserModal/TagsTabAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const addTag = async () => {
})
newTagName.value = ''
} catch (e) {
if (!(e instanceof AxiosError) || e.response?.status !== 409) {
addErrorToast('タグの追加に失敗しました')
} else {
if (e instanceof AxiosError && e.response?.status === 409) {
addErrorToast('既に同じ名前のタグがついています')
} else {
addErrorToast('タグの追加に失敗しました')
}
}
adding.value = false
Expand Down

0 comments on commit ef46078

Please sign in to comment.