OSDN Git Service

redirect to transactions after transaction created
authorYongfeng LI <wliyongfeng@gmail.com>
Sat, 30 Dec 2017 06:33:37 +0000 (14:33 +0800)
committerYongfeng LI <wliyongfeng@gmail.com>
Sat, 30 Dec 2017 06:33:37 +0000 (14:33 +0800)
src/features/transactions/actions.js

index 72c8a89..a250155 100644 (file)
@@ -89,10 +89,7 @@ form.submitForm = (formParams) => function(dispatch) {
 
         dispatch(form.created())
         dispatch(push({
-          pathname: `/transactions/${resp.data.txid}`,
-          state: {
-            preserveFlash: true
-          }
+          pathname: '/transactions'
         }))
       })
   }