Skip to content

Commit

Permalink
Allow preload banner to show up if new design_id is the same as the c…
Browse files Browse the repository at this point in the history
…urrent one
  • Loading branch information
albireox committed Feb 20, 2022
1 parent 04510cb commit 03700f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderer/views/HAL/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,13 @@ const IOSSwitch = styled((props: SwitchProps) => (
}));

function PreloadedDesign() {
const keywords = useKeywords(['jaeger.configuration_loaded', 'jaeger.design_preloaded']);
const keywords = useKeywords(['jaeger.design_preloaded']);

let design_id: number | undefined = keywords['jaeger.configuration_loaded']?.values[1];
let preloaded: number | undefined = keywords['jaeger.design_preloaded']?.values[0];

const theme = useTheme();

if (!preloaded || preloaded < 0 || (design_id && design_id === preloaded)) return null;
if (!preloaded || preloaded < 0) return null;

return (
<Stack
Expand Down

0 comments on commit 03700f6

Please sign in to comment.