Merge pull request #1563 from lbryio/overtaken-claim-price
always update costInfo on FilePage componentDidMount
This commit is contained in:
commit
8429e4c7f3
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue