use supportsByOutpoint
This commit is contained in:
parent
03ebcd953d
commit
a8cacd13ae
3 changed files with 5 additions and 4 deletions
|
@ -117,7 +117,7 @@
|
|||
"jsmediatags": "^3.8.1",
|
||||
"json-loader": "^0.5.4",
|
||||
"lbry-format": "https://github.com/lbryio/lbry-format.git",
|
||||
"lbry-redux": "lbryio/lbry-redux#c8126ab21792d7a85e1123a2363af285a0263654",
|
||||
"lbry-redux": "lbryio/lbry-redux#02f6918238110726c0b3b4248c61a84ac0b969e3",
|
||||
"lbryinc": "lbryio/lbryinc#43d382d9b74d396a581a74d87e4c53105e04f845",
|
||||
"lint-staged": "^7.0.2",
|
||||
"localforage": "^1.7.1",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { selectClaimedRewardsByTransactionId } from 'lbryinc';
|
|||
import { doOpenModal } from 'redux/actions/app';
|
||||
import {
|
||||
selectAllMyClaimsByOutpoint,
|
||||
selectSupportsById,
|
||||
selectSupportsByOutpoint,
|
||||
selectTransactionListFilter,
|
||||
doSetTransactionListFilter,
|
||||
} from 'lbry-redux';
|
||||
|
@ -11,7 +11,7 @@ import TransactionList from './view';
|
|||
|
||||
const select = state => ({
|
||||
rewards: selectClaimedRewardsByTransactionId(state),
|
||||
mySupports: selectSupportsById(state),
|
||||
mySupports: selectSupportsByOutpoint(state),
|
||||
myClaims: selectAllMyClaimsByOutpoint(state),
|
||||
filterSetting: selectTransactionListFilter(state),
|
||||
});
|
||||
|
|
|
@ -43,8 +43,9 @@ class TransactionList extends React.PureComponent<Props> {
|
|||
}
|
||||
|
||||
isRevokeable(txid: string, nout: number) {
|
||||
const outpoint = `${txid}:${nout}`;
|
||||
const { mySupports, myClaims } = this.props;
|
||||
return !!mySupports[txid] || myClaims.has(`${txid}:${nout}`);
|
||||
return !!mySupports[outpoint] || myClaims.has(outpoint);
|
||||
}
|
||||
|
||||
revokeClaim(txid: string, nout: number) {
|
||||
|
|
Loading…
Reference in a new issue