File tree Expand file tree Collapse file tree
packages/neuron-ui/src/components/NervosDAO Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,14 +60,17 @@ const WithdrawDialog = ({
6060 const currentEpochInfo = epochParser ( currentEpoch )
6161 const targetEpochNumber = calculateTargetEpochNumber ( depositEpochInfo , currentEpochInfo )
6262 const epochs = targetEpochNumber - currentEpochInfo . number - BigInt ( 1 )
63- const message = t ( 'nervos-dao.notice-wait-time' , {
64- epochs : localNumberFormatter ( epochs ) ,
65- blocks : localNumberFormatter ( currentEpochInfo . length - currentEpochInfo . index ) ,
66- days : localNumberFormatter ( epochs / BigInt ( 6 ) ) ,
67- } )
63+ const message =
64+ epochs >= BigInt ( 0 )
65+ ? t ( 'nervos-dao.notice-wait-time' , {
66+ epochs : localNumberFormatter ( epochs ) ,
67+ blocks : localNumberFormatter ( currentEpochInfo . length - currentEpochInfo . index ) ,
68+ days : localNumberFormatter ( epochs / BigInt ( 6 ) ) ,
69+ } )
70+ : ''
6871
6972 const alert =
70- epochs <= BigInt ( 5 )
73+ epochs <= BigInt ( 5 ) && epochs >= BigInt ( 0 )
7174 ? t ( 'nervos-dao.withdraw-alert' , {
7275 epochs,
7376 nextLeftEpochs : epochs + BigInt ( 180 ) ,
You can’t perform that action at this time.
0 commit comments