mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
chore: organize ts types, fix eslint errors
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user