refresh youtube creator status when switching between channels

Issue 3750
This commit is contained in:
infiinte-persistence 2020-06-28 01:34:19 +08:00 committed by Sean Yesmunt
parent 2673a18923
commit 192bf12a0e
2 changed files with 3 additions and 0 deletions

View file

@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix report page layout ([#4384](https://github.com/lbryio/lbry-desktop/pull/4384))
- Fix language-change not applied to components immediately _community pr!_ ([#4437](https://github.com/lbryio/lbry-desktop/pull/4437))
- Fix incorrect creator status shown when navigating between channels _community pr!_ ([#4438](https://github.com/lbryio/lbry-desktop/pull/4438))
## [0.46.2] - [2020-06-10]

View file

@ -110,6 +110,8 @@ function ChannelPage(props: Props) {
Lbryio.call('yt', 'get_youtuber', { channel_claim_id: claimId }).then(response => {
if (response.is_verified_youtuber) {
setLastYtSyncDate(response.last_synced);
} else {
setLastYtSyncDate(undefined);
}
});
}, [claimId]);