Merge pull request #1563 from lbryio/overtaken-claim-price

always update costInfo on FilePage componentDidMount
This commit is contained in:
Sean Yesmunt 2018-06-08 14:57:46 -04:00 committed by GitHub
commit 8429e4c7f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,15 +54,14 @@ class FilePage extends React.Component<Props> {
}
componentDidMount() {
const { uri, fileInfo, fetchFileInfo, costInfo, fetchCostInfo } = this.props;
const { uri, fileInfo, fetchFileInfo, fetchCostInfo } = this.props;
if (fileInfo === undefined) {
fetchFileInfo(uri);
}
if (costInfo === undefined) {
// See https://github.com/lbryio/lbry-app/pull/1563 for discussion
fetchCostInfo(uri);
}
this.checkSubscription(this.props);
}