fix typo
This commit is contained in:
parent
9119d18544
commit
47283658b5
2 changed files with 9 additions and 7 deletions
|
@ -99,13 +99,13 @@ class FilePage extends React.Component<Props> {
|
|||
}
|
||||
|
||||
componentDidUpdate(prevProps: Props) {
|
||||
const { isSubscribed, claim, uri, fetchViewCount } = this.props;
|
||||
const { isSubscribed, claim, uri, fetchViewCount, claimIsMine } = this.props;
|
||||
|
||||
if (!prevProps.isSubscribed && isSubscribed) {
|
||||
this.removeFromSubscriptionNotifications();
|
||||
}
|
||||
|
||||
if (prevProps.uri !== uri) {
|
||||
if (prevProps.uri !== uri && claimIsMine) {
|
||||
fetchViewCount(claim.claim_id);
|
||||
}
|
||||
}
|
||||
|
@ -213,9 +213,11 @@ class FilePage extends React.Component<Props> {
|
|||
{__('Published on')} <DateTime block={height} show={DateTime.SHOW_DATE} />
|
||||
</div>
|
||||
|
||||
<div className="media__subtext--large">
|
||||
{viewCount} {viewCount !== 1 ? __('Views') : __('View')}
|
||||
</div>
|
||||
{claimIsMine && (
|
||||
<div className="media__subtext--large">
|
||||
{viewCount} {viewCount !== 1 ? __('Views') : __('View')}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="media__actions media__actions--between">
|
||||
|
|
|
@ -5980,9 +5980,9 @@ lbry-redux@lbryio/lbry-redux#f140db38dd73cead9e87549340fa9434da62ba8a:
|
|||
reselect "^3.0.0"
|
||||
uuid "^3.3.2"
|
||||
|
||||
lbryinc@lbryio/lbryinc#0f74a896e1b42b86e3143d79398ab27217901b01:
|
||||
lbryinc@lbryio/lbryinc#351d0a08806b0f770b50066b61a806171f6424d4:
|
||||
version "0.0.1"
|
||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/0f74a896e1b42b86e3143d79398ab27217901b01"
|
||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/351d0a08806b0f770b50066b61a806171f6424d4"
|
||||
dependencies:
|
||||
bluebird "^3.5.1"
|
||||
reselect "^3.0.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue