Live Location: Fix disappearing map when loading (#3371)

This commit is contained in:
Alexander Zinchuk 2023-07-05 13:14:35 +02:00
parent cd4e124fbb
commit e611d23fac

View File

@ -83,7 +83,7 @@ const Location: FC<OwnProps> = ({
const mediaHash = buildStaticMapHash(point, width, height, zoom, scale);
const mediaBlobUrl = useMedia(mediaHash);
const prevMediaBlobUrl = usePrevious(mediaBlobUrl);
const prevMediaBlobUrl = usePrevious(mediaBlobUrl, true);
const mapBlobUrl = mediaBlobUrl || prevMediaBlobUrl;
const accuracyRadiusPx = useMemo(() => {