chore: organize ts types, fix eslint errors

This commit is contained in:
Vasily Zubarev
2025-04-09 12:45:56 +02:00
parent 707a030a0a
commit 416c45d08c
29 changed files with 277 additions and 84 deletions

View File

@@ -44,8 +44,8 @@ export default function TransactionCreateForm({
})
useEffect(() => {
if (createState?.success) {
router.push(`/transactions/${createState.transactionId}`)
if (createState?.success && createState.data) {
router.push(`/transactions/${createState.data.id}`)
}
}, [createState, router])