channelThumbnail: don't resolve if already in process
This commit is contained in:
parent
60a0d6d31a
commit
531a87e969
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ function ChannelThumbnail(props: Props) {
|
||||||
ThumbUploadError,
|
ThumbUploadError,
|
||||||
} = props;
|
} = props;
|
||||||
const [thumbLoadError, setThumbLoadError] = React.useState(ThumbUploadError);
|
const [thumbLoadError, setThumbLoadError] = React.useState(ThumbUploadError);
|
||||||
const shouldResolve = claim === undefined;
|
const shouldResolve = !isResolving && claim === undefined;
|
||||||
const thumbnail = rawThumbnail && rawThumbnail.trim().replace(/^http:\/\//i, 'https://');
|
const thumbnail = rawThumbnail && rawThumbnail.trim().replace(/^http:\/\//i, 'https://');
|
||||||
const thumbnailPreview = rawThumbnailPreview && rawThumbnailPreview.trim().replace(/^http:\/\//i, 'https://');
|
const thumbnailPreview = rawThumbnailPreview && rawThumbnailPreview.trim().replace(/^http:\/\//i, 'https://');
|
||||||
const defaultAvatar = AVATAR_DEFAULT || Gerbil;
|
const defaultAvatar = AVATAR_DEFAULT || Gerbil;
|
||||||
|
|
Loading…
Reference in a new issue