From 6f755da982e066adb3da337f14469295da3f1f3c Mon Sep 17 00:00:00 2001 From: Rakov Roman Date: Tue, 8 Nov 2022 11:38:04 +0300 Subject: [PATCH] fix(#3080): fixed aws value --- src/features/ProfileLogo/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/ProfileLogo/index.tsx b/src/features/ProfileLogo/index.tsx index 05eb3175..290ef26e 100644 --- a/src/features/ProfileLogo/index.tsx +++ b/src/features/ProfileLogo/index.tsx @@ -74,7 +74,9 @@ export const ProfileLogo = ({ useEffect(() => { (async () => { - if (!logoUrl) { + // если нет logoUrl, то нужно делать запрос в aws + // если logoUrl === null, то это уже ответ с aws + if (logoUrl === null) { setImageSource(scoutSrc) return }