diff --git a/striker-ui/components/Bars/StackBar.tsx b/striker-ui/components/Bars/StackBar.tsx index b6e4e38e..767f6d3e 100644 --- a/striker-ui/components/Bars/StackBar.tsx +++ b/striker-ui/components/Bars/StackBar.tsx @@ -46,9 +46,9 @@ const StackBar: FC = (props) => { const backgroundColor = typeof colour === 'string' ? colour - : Object.entries(colour).findLast( - ([mark]) => val >= Number(mark), - )?.[1] ?? GREY; + : Object.entries(colour) + .reverse() + .find(([mark]) => val >= Number(mark))?.[1] ?? GREY; let position: 'absolute' | 'relative' = 'relative'; let top: 0 | undefined;