mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
* fixed slider not updating
This commit is contained in:
parent
501f93b754
commit
7b567243fb
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user