From 2677302f2c468616bbc412db8288ba468da54ecc Mon Sep 17 00:00:00 2001 From: Nathaniel Caza Date: Tue, 6 Feb 2024 14:30:24 -0600 Subject: [PATCH] invert render flow --- web/src/app/util/DestinationAvatar.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/web/src/app/util/DestinationAvatar.tsx b/web/src/app/util/DestinationAvatar.tsx index a887d9b124..f213e1529c 100644 --- a/web/src/app/util/DestinationAvatar.tsx +++ b/web/src/app/util/DestinationAvatar.tsx @@ -47,17 +47,17 @@ export function DestinationAvatar( ) } - if (props.iconURL) { - const builtInIcon = builtInIcons[props.iconURL] || null - return ( - - {builtInIcon} - - ) + if (!props.iconURL) { + return null } - return null + const builtInIcon = builtInIcons[props.iconURL] || null + return ( + + {builtInIcon} + + ) }