Rely on types

This commit is contained in:
Manav Rathi 2024-11-26 17:28:56 +05:30
parent a6a9d2c740
commit 1f94020738
No known key found for this signature in database
2 changed files with 4 additions and 7 deletions

View File

@ -4,12 +4,9 @@ export default [
...config,
{
rules: {
/* TODO:
* "This rule requires the `strictNullChecks` compiler option to be
* turned on to function correctly"
*/
// We want to turn this off globally, but after having revisited all
// existing uses.
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
/** TODO: Disabled as we migrate, try to prune these again */
"react-hooks/exhaustive-deps": "off",
},

View File

@ -66,7 +66,7 @@ const Page: React.FC = () => {
const lcSearch = searchTerm.toLowerCase();
const filteredCodes = codes.filter(
(code) =>
code.issuer?.toLowerCase().includes(lcSearch) ||
code.issuer.toLowerCase().includes(lcSearch) ||
code.account?.toLowerCase().includes(lcSearch),
);
@ -275,7 +275,7 @@ const OTPDisplay: React.FC<OTPDisplayProps> = ({ code, otp, nextOTP }) => {
textAlign: "left",
}}
>
{code.issuer ?? ""}
{code.issuer}
</p>
<p
style={{