Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint
  • Loading branch information
BrunoQuaresma committed Oct 16, 2024
commit 893efec82b90f95afc1f5e77250b6f3d974a4da6
3 changes: 2 additions & 1 deletion site/src/pages/ResetPasswordPage/ChangePasswordPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Interpolation, Theme } from "@emotion/react";
import LoadingButton from "@mui/lab/LoadingButton";
import { Button, TextField } from "@mui/material";
import Button from "@mui/material/Button";
import TextField from "@mui/material/TextField";
import { CustomLogo } from "components/CustomLogo/CustomLogo";
import { Stack } from "components/Stack/Stack";
import type { FC } from "react";
Expand Down
8 changes: 3 additions & 5 deletions site/src/pages/ResetPasswordPage/RequestOTPPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useTheme, type Interpolation, type Theme } from "@emotion/react";
import LoadingButton from "@mui/lab/LoadingButton";
import { Button, TextField } from "@mui/material";
import Button from "@mui/material/Button";
import TextField from "@mui/material/TextField";
import { CustomLogo } from "components/CustomLogo/CustomLogo";
import { Stack } from "components/Stack/Stack";
import type { FC } from "react";
Expand All @@ -27,10 +28,7 @@ const RequestOTPPage: FC = () => {
<CustomLogo />
{requestOTPMutation.isSuccess ? (
<RequestOTPSuccess
// When requestOTPMutation.isSuccess is true,
// requestOTPMutation.variables.email is defined
// biome-ignore lint/style/noNonNullAssertion: Read above
email={requestOTPMutation.variables!.email}
email={requestOTPMutation.variables?.email ?? ""}
/>
) : (
<RequestOTP
Expand Down