* fixed slider not updating

This commit is contained in:
Sadaqat Ali 2022-11-17 07:34:02 +05:00
parent 501f93b754
commit 7b567243fb

View File

@ -165,17 +165,20 @@ class DelegateScreen extends Component {
this.setState({ this.setState({
delegatedHP: vestsToHp(vest_shares.amount, hivePerMVests).toFixed(3), delegatedHP: vestsToHp(vest_shares.amount, hivePerMVests).toFixed(3),
hp: vestsToHp(vest_shares.amount, hivePerMVests).toFixed(3), hp: vestsToHp(vest_shares.amount, hivePerMVests).toFixed(3),
amount: vest_shares.amount,
}); });
} else { } else {
this.setState({ this.setState({
delegatedHP: 0, delegatedHP: 0,
hp: 0, hp: 0,
amount: 0,
}); });
} }
} else { } else {
this.setState({ this.setState({
delegatedHP: 0, delegatedHP: 0,
hp: 0, hp: 0,
amount: 0,
}); });
} }
} catch (err) { } catch (err) {