Skip to content

Commit b673c1f

Browse files
refactor: replace ==/!= with ===/!==
Comparing to `null` without a type-checking operator (`===` or `!==`), can have unintended results as the comparison will evaluate to `true` when comparing to not just a `null`, but also an `undefined` value.
1 parent ed905de commit b673c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/global/Playground/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export default function Playground({
413413
if (!hasUsageTargetOptions) {
414414
return codeSnippets[usageTarget];
415415
}
416-
if (codeSnippets[usageTarget] == null) {
416+
if (codeSnippets[usageTarget] === null) {
417417
return null;
418418
}
419419
return (

0 commit comments

Comments
 (0)