Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
2
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" ;
4
5
import { CustomLogo } from "components/CustomLogo/CustomLogo" ;
5
6
import { Stack } from "components/Stack/Stack" ;
6
7
import type { FC } from "react" ;
Original file line number Diff line number Diff line change 1
1
import { useTheme , type Interpolation , type Theme } from "@emotion/react" ;
2
2
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" ;
4
5
import { CustomLogo } from "components/CustomLogo/CustomLogo" ;
5
6
import { Stack } from "components/Stack/Stack" ;
6
7
import type { FC } from "react" ;
@@ -27,10 +28,7 @@ const RequestOTPPage: FC = () => {
27
28
< CustomLogo />
28
29
{ requestOTPMutation . isSuccess ? (
29
30
< 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 ?? "" }
34
32
/>
35
33
) : (
36
34
< RequestOTP
0 commit comments