Fred Wong

--

--

I came across this interesting bug yesterday in Firefox. The notification feature worked in Chrome but not in Firefox in production and I did my investigation in local.

I did the experiment in the development tool for both browser

Chrome

new Date("2022-09-29 15:00:00.000-7")
Thu Sep 29 2022 18:00:00 GMT-0400 (Eastern Daylight…

--

--

I need to create a vertical bar to divide the sections like this.

First approach

{sections.map((section, index) => {
return (
<>
<Section onClick={section.onClick}>
ABC
</Section>
{index < sections.length - 1 && <VerticalLine />}
</>
);
})}

Second approach with css(suggestion from co-worker)

const VerticalLine = styled.div`
&:last-of-type {
display: none;
}
`;

Pretty nice right?

--

--