Skip to content

Commit 64166cc

Browse files
committed
feat(neuron-ui): set the cycles to empty if the transaction is invalid
1 parent c31dccb commit 64166cc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/neuron-ui/src/components/Send

packages/neuron-ui/src/components/Send/hooks.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ const useOnTransactionChange = (walletID: string, items: TransactionOutput[], di
126126
payload: '0',
127127
})
128128
})
129+
} else {
130+
dispatch({
131+
type: AppActions.UpdateSendCycles,
132+
payload: '0',
133+
})
129134
}
130135
}, 300)
131136
}, [walletID, items, dispatch])

0 commit comments

Comments
 (0)