Cleaning up a suite of eslint warnings

This commit is contained in:
Keith Stevens
2023-01-10 13:02:17 +09:00
parent 2e2efdec65
commit 34a1715923
12 changed files with 20 additions and 24 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import React from "react";
export const CollapsableText = ({ text, maxLength = 220 }) => {
const { isOpen, onOpen, onClose } = useDisclosure();
if (typeof text != "string" || text.length <= maxLength) {
if (typeof text !== "string" || text.length <= maxLength) {
return text;
} else {
return (