Skip to content

Commit

Permalink
バグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Sep 30, 2023
1 parent e2e46db commit 6eb0103
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/group/usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const createGroupUsecase = async (

try {
await Promise.all([
addGroupMembersUsecase(res.id, group.members),
addGroupOwnersUsecase(res.id, group.owners)
await repository.postGroupMembers(res.id, group.members),
await repository.postGroupOwners(res.id, group.owners)
])
} catch {
throw new Error('グループの作成に失敗しました')
Expand Down
3 changes: 3 additions & 0 deletions src/pages/composables/useNewTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { reactive, ref } from 'vue'
import { useRouter } from 'vue-router'
import { useToast } from 'vue-toastification'

import type { RequestDetail } from '/@/features/request/model'
Expand All @@ -11,6 +12,7 @@ export type MoneyDirection = 'toTraP' | 'fromTraP'

export const useNewTransaction = () => {
const toast = useToast()
const router = useRouter()

const isSending = ref(false)

Expand Down Expand Up @@ -76,6 +78,7 @@ export const useNewTransaction = () => {
toast.error('入出金記録の作成に失敗しました')
}
isSending.value = false
router.push('/transactions')
}

return {
Expand Down

0 comments on commit 6eb0103

Please sign in to comment.