diff --git a/src/components/widgets/logo/logo.jsx b/src/components/widgets/logo/logo.jsx index bb58a7655d0..834325619b9 100644 --- a/src/components/widgets/logo/logo.jsx +++ b/src/components/widgets/logo/logo.jsx @@ -8,7 +8,9 @@ export default function Logo({ options }) { {options.icon ? - : +
+ +
: // fallback to homepage logo
; } - const source = statusData?.sources[0]; + const snapshotHost = service.widget?.snapshotHost; + const snapshotPath = service.widget?.snapshotPath; + + const source = statusData?.sources + .filter(el => snapshotHost ? el.source.host === snapshotHost : true) + .filter(el => snapshotPath ? el.source.path === snapshotPath : true)[0]; if (!statusData || !source) { return (