File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
web/src/ui/pages/softwareDetails Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ export default function SoftwareDetails(props: Props) {
5656 return < LoadingFallback /> ;
5757 }
5858
59+ const getLogoUrl = ( ) : string | undefined => {
60+ if ( software . logoUrl ) return software . logoUrl ;
61+ if ( uiConfig ?. softwareDetails . defaultLogo ) return softwareLogoPlaceholder ;
62+ } ;
63+
5964 return (
6065 < >
6166 < div className = { className } >
@@ -76,11 +81,7 @@ export default function SoftwareDetails(props: Props) {
7681 className = { classes . breadcrumb }
7782 />
7883 < HeaderDetailCard
79- softwareLogoUrl = {
80- ( software ?. logoUrl ?? uiConfig ?. softwareDetails . defaultLogo )
81- ? softwareLogoPlaceholder
82- : undefined
83- }
84+ softwareLogoUrl = { getLogoUrl ( ) }
8485 softwareName = { software . softwareName }
8586 softwareDereferencing = { software . dereferencing }
8687 authors = { software . authors }
You can’t perform that action at this time.
0 commit comments