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 8fe65addbe
2 changed files with 8 additions and 6 deletions

View File

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

View File

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