Merge pull request #12 from lbryio/fix-nout

Change nOut to nout
This commit is contained in:
alexliebowitz 2017-03-10 15:37:38 -05:00 committed by GitHub
commit eb37f1f6bf

View file

@ -24,7 +24,7 @@ export let FileListDownloaded = React.createClass({
lbry.file_list().then((fileInfos) => { lbry.file_list().then((fileInfos) => {
if (!this._isMounted) { return; } if (!this._isMounted) { return; }
const myClaimOutpoints = myClaimInfos.map(({txid, nOut}) => txid + ':' + nOut); const myClaimOutpoints = myClaimInfos.map(({txid, nout}) => txid + ':' + nout);
this.setState({ this.setState({
fileInfos: fileInfos.filter(({outpoint}) => !myClaimOutpoints.includes(outpoint)), fileInfos: fileInfos.filter(({outpoint}) => !myClaimOutpoints.includes(outpoint)),
}); });
@ -72,7 +72,7 @@ export let FileListPublished = React.createClass({
lbry.file_list().then((fileInfos) => { lbry.file_list().then((fileInfos) => {
if (!this._isMounted) { return; } if (!this._isMounted) { return; }
const myClaimOutpoints = claimInfos.map(({txid, nOut}) => txid + ':' + nOut); const myClaimOutpoints = claimInfos.map(({txid, nout}) => txid + ':' + nout);
this.setState({ this.setState({
fileInfos: fileInfos.filter(({outpoint}) => myClaimOutpoints.includes(outpoint)), fileInfos: fileInfos.filter(({outpoint}) => myClaimOutpoints.includes(outpoint)),
}); });