Moltivie / the-t3-stack

Avoid use of == and != JS-0050
Anti-pattern
Minor
a year agoa year old
Expected '===' and instead saw '=='.
128                        <div className="flex items-center justify-center space-x-2">
129                          <div
130                            className={`m-1 h-2 w-2 animate-ping rounded-full ${
131                              moderator.status == 1132                                ? "bg-orange-400"
133                                : moderator.status == 2
134                                ? "bg-green-400"
Expected '===' and instead saw '=='.
136                            } `}
137                          />
138                          <p className="text-gray-200">
139                            {moderator.status == 1140                              ? "Pending"
141                              : moderator.status == 2
142                              ? "Accepted"
Expected '===' and instead saw '=='.
138                          <p className="text-gray-200">
139                            {moderator.status == 1
140                              ? "Pending"
141                              : moderator.status == 2142                              ? "Accepted"
143                              : "Rejected"}
144                          </p>
Expected '===' and instead saw '=='.
130                            className={`m-1 h-2 w-2 animate-ping rounded-full ${
131                              moderator.status == 1
132                                ? "bg-orange-400"
133                                : moderator.status == 2134                                ? "bg-green-400"
135                                : "bg-red-400"
136                            } `}
Expected '===' and instead saw '=='.
199                      <p className="flex items-end text-2xl text-gray-200">
200                        {userIsRegistered.status == 1
201                          ? "Pending"
202                          : userIsRegistered.status == 2203                          ? "Accepted"
204                          : "Rejected"}
205                      </p>