From 8ebe13144307f01a2eb7924dde24790b49eef4a7 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 5 May 2020 21:51:21 -0300 Subject: [PATCH] Fix CDN_PREFIX_ALL as false --- client/providers/AvatarUrlProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/providers/AvatarUrlProvider.js b/client/providers/AvatarUrlProvider.js index a23b49dd333f..471d677e63ee 100644 --- a/client/providers/AvatarUrlProvider.js +++ b/client/providers/AvatarUrlProvider.js @@ -9,6 +9,6 @@ export function AvatarUrlProvider({ children }) { const cdn = useSetting('CDN_PREFIX_ALL'); const cdnPrefix = useSetting('CDN_PREFIX'); - const avatarBase = useMemo(() => ({ baseUrl: `${ cdn && cdnPrefix }${ base }` }), [cdn, cdnPrefix]); + const avatarBase = useMemo(() => ({ baseUrl: `${ (cdn && cdnPrefix) || '' }${ base }` }), [cdn, cdnPrefix]); return ; }