Commit 36bee60f authored by Quoc Huy Nguyen Dinh's avatar Quoc Huy Nguyen Dinh
Browse files

Closes #23: fix revoking delegation

parent b91e9f30
...@@ -53,15 +53,16 @@ class Delegations extends React.Component { ...@@ -53,15 +53,16 @@ class Delegations extends React.Component {
if (!account.has('vesting_shares')) return null; if (!account.has('vesting_shares')) return null;
const showTransferHandler = (delegatee) => { const showTransferHandler = (delegatee) => {
const { accountProp } = this.props; const accountName = account.get('name');
const refetchCB = () => { const refetchCB = () => {
vestingDelegationsLoading(true); vestingDelegationsLoading(true);
getVestingDelegations(accountProp.get('name'), (err, res) => { getVestingDelegations(accountName, (err, res) => {
setVestingDelegations(res); setVestingDelegations(res);
vestingDelegationsLoading(false); vestingDelegationsLoading(false);
}); });
}; };
revokeDelegation(accountProp.get('name'), delegatee, refetchCB); revokeDelegation(accountName, delegatee, refetchCB);
}; };
/// transfer log /// transfer log
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment