File tree Expand file tree Collapse file tree
packages/neuron-ui/src/states/stateProvider/actionCreators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,17 +271,9 @@ export const backupWallet = (params: Controller.BackupWalletParams) => (dispatch
271271export const updateNervosDaoData = ( walletID : Controller . GetNervosDaoDataParams ) => ( dispatch : StateDispatch ) => {
272272 getNervosDaoData ( walletID ) . then ( res => {
273273 if ( res . status === 1 ) {
274- const withdrawList = res . result
275- . filter ( ( r : State . NervosDAORecord ) => ! r . depositOutPoint )
276- . sort ( ( r1 : State . NervosDAORecord , r2 : State . NervosDAORecord ) => + r2 . timestamp - + r1 . timestamp )
277-
278- const claimList = res . result
279- . filter ( ( r : State . NervosDAORecord ) => r . depositOutPoint )
280- . sort ( ( r1 : State . NervosDAORecord , r2 : State . NervosDAORecord ) => + r2 . timestamp - + r1 . timestamp )
281-
282274 dispatch ( {
283275 type : NeuronWalletActions . UpdateNervosDaoData ,
284- payload : { records : [ ... claimList , ... withdrawList ] } ,
276+ payload : { records : res . result } ,
285277 } )
286278 } else {
287279 addNotification ( failureResToNotification ( res ) ) ( dispatch )
You can’t perform that action at this time.
0 commit comments