mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Rely on types
This commit is contained in:
parent
a6a9d2c740
commit
1f94020738
@ -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",
|
||||
},
|
||||
|
@ -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={{
|
||||
|
Loading…
x
Reference in New Issue
Block a user