fix availability call

This commit is contained in:
Alex Grintsvayg 2017-04-10 13:19:11 -04:00
parent 7327b03c7f
commit 096659bc90
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -8,6 +8,7 @@ dist
/lbry-app-venv
/daemon/build
/daemon/venv
/daemon/requirements.txt
/.idea
*.pyc

View file

@ -261,7 +261,7 @@ export let FileActions = React.createClass({
componentDidMount: function() {
this._isMounted = true;
this._fileInfoSubscribeId = lbry.fileInfoSubscribe(this.props.outpoint, this.onFileInfoUpdate);
lbry.getStreamAvailability(this.props.streamName, (availability) => {
lbry.getStreamAvailability(this.props.uri, (availability) => {
if (this._isMounted) {
this.setState({
available: availability > 0,