Merge pull request #1137 from esteemapp/bugfix/boost-promote

Fixed selected user issue for boost and promote screen
This commit is contained in:
uğur erdal 2019-09-04 13:56:50 +03:00 committed by GitHub
commit 90ec6d3615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -138,9 +138,10 @@ class BoostPostScreen extends PureComponent {
amount: `${amount.toFixed(3)} POINT`, amount: `${amount.toFixed(3)} POINT`,
}); });
const uri = `sign/custom-json?authority=active&required_auths=%5B%22${selectedUser}%22%5D&required_posting_auths=%5B%5D&id=esteem_boost&json=${encodeURIComponent( const uri = `sign/custom-json?authority=active&required_auths=%5B%22${get(
json, user,
)}`; 'name',
)}%22%5D&required_posting_auths=%5B%5D&id=esteem_boost&json=${encodeURIComponent(json)}`;
this.setState({ this.setState({
isSCModalOpen: true, isSCModalOpen: true,

View File

@ -137,9 +137,10 @@ class PointsScreen extends PureComponent {
duration: day, duration: day,
}); });
const uri = `sign/custom-json?authority=active&required_auths=%5B%22${selectedUser}%22%5D&required_posting_auths=%5B%5D&id=esteem_promote&json=${encodeURIComponent( const uri = `sign/custom-json?authority=active&required_auths=%5B%22${get(
json, user,
)}`; 'name',
)}%22%5D&required_posting_auths=%5B%5D&id=esteem_promote&json=${encodeURIComponent(json)}`;
this.setState({ this.setState({
isSCModalOpen: true, isSCModalOpen: true,