Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 893efec

Browse files
committedOct 16, 2024
Fix lint
1 parent c125320 commit 893efec

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎site/src/pages/ResetPasswordPage/ChangePasswordPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Interpolation, Theme } from "@emotion/react";
22
import LoadingButton from "@mui/lab/LoadingButton";
3-
import { Button, TextField } from "@mui/material";
3+
import Button from "@mui/material/Button";
4+
import TextField from "@mui/material/TextField";
45
import { CustomLogo } from "components/CustomLogo/CustomLogo";
56
import { Stack } from "components/Stack/Stack";
67
import type { FC } from "react";

‎site/src/pages/ResetPasswordPage/RequestOTPPage.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useTheme, type Interpolation, type Theme } from "@emotion/react";
22
import LoadingButton from "@mui/lab/LoadingButton";
3-
import { Button, TextField } from "@mui/material";
3+
import Button from "@mui/material/Button";
4+
import TextField from "@mui/material/TextField";
45
import { CustomLogo } from "components/CustomLogo/CustomLogo";
56
import { Stack } from "components/Stack/Stack";
67
import type { FC } from "react";
@@ -27,10 +28,7 @@ const RequestOTPPage: FC = () => {
2728
<CustomLogo />
2829
{requestOTPMutation.isSuccess ? (
2930
<RequestOTPSuccess
30-
// When requestOTPMutation.isSuccess is true,
31-
// requestOTPMutation.variables.email is defined
32-
// biome-ignore lint/style/noNonNullAssertion: Read above
33-
email={requestOTPMutation.variables!.email}
31+
email={requestOTPMutation.variables?.email ?? ""}
3432
/>
3533
) : (
3634
<RequestOTP

0 commit comments

Comments
 (0)
Failed to load comments.