1nwf / Produx-v2

Avoid use of == and != JS-0050
Anti-pattern
Minor
7 months agoa year old
Expected '===' and instead saw '=='
 78                    return (
 79                        <div
 80                            key={idx}
 81                            ref={idx == posts.length - 1 ? lastPostRef : null} 82                        >
 83                            <Post
 84                                key={idx}
Expected '===' and instead saw '=='
 61                        <span
 62                            key={idx}
 63                            className={`px-5 text-sm overflow-auto mr-[2vw] py-3 hover:bg-gray-200 hover:cursor-pointer rounded-lg ${
 64                                channel == c && 'bg-gray-300' 65                            }`}
 66                            onClick={() => setChannel(c)}
 67                        >
Expected '===' and instead saw '=='
171              <div
172                className="p-4 px-6 hover:bg-gray-200 hover:cursor-pointer mx-auto rounded-2xl my-2 w-[15vw]"
173                style={{
174                  backgroundColor: "Questions" == channelName ? "white" : "",175                }}
176              >
177                <p className="text-[30px] lg:text-[calc(10px+0.5vw)] text-center lg:text-left md:text-4xl">
Expected '===' and instead saw '=='
150                  <div
151                    className="p-4 px-6 hover:bg-gray-200 hover:cursor-pointer mx-auto rounded-2xl my-2 w-[15vw] "
152                    style={{
153                      backgroundColor: e == channelName ? "white" : "",154                    }}
155                  >
156                    <p className="text-[30px] lg:text-[calc(10px+0.5vw)] text-center lg:text-left md:text-4xl">
Expected '===' and instead saw '=='
128              <div
129                className="p-4 px-6 hover:bg-gray-200 hover:cursor-pointer mx-auto rounded-2xl my-2 w-[15vw] "
130                style={{
131                  backgroundColor: "Home" == channelName ? "white" : "",132                }}
133              >
134                <p className="text-[30px] lg:text-[calc(10px+0.5vw)] text-center lg:text-left md:text-4xl">