fix availability call
This commit is contained in:
parent
7327b03c7f
commit
096659bc90
2 changed files with 2 additions and 1 deletions
ui/js/component
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue