Merge pull request #68 from lbryio/my-files-no-files

My FIles: Don't get stuck on loading screen if no files are present
This commit is contained in:
alexliebowitz 2016-10-20 12:43:39 -04:00 committed by GitHub
commit fb8a36ef09

View file

@ -166,6 +166,13 @@ var MyFilesPage = React.createClass({
},
getFilesOwnership: function() {
lbry.getFilesInfo((filesInfo) => {
if (!filesInfo) {
this.setState({
filesOwnershipLoaded: true,
});
return;
}
var ownershipLoadedCount = 0;
for (let i = 0; i < filesInfo.length; i++) {
let fileInfo = filesInfo[i];