Skip to content

Commit d767d25

Browse files
committed
Remove unnecessary undefined on useState
1 parent de11363 commit d767d25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/EditOAuth2AppPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ const EditOAuth2AppPage: FC = () => {
2222
const navigate = useNavigate();
2323
const { appId } = useParams() as { appId: string };
2424
const queryClient = useQueryClient();
25-
const [newAppSecret, setNewAppSecret] = useState<
26-
TypesGen.OAuth2AppSecretFull | undefined
27-
>(undefined);
25+
const [newAppSecret, setNewAppSecret] =
26+
useState<TypesGen.OAuth2AppSecretFull>();
2827

2928
const oauth2AppQuery = useQuery(oauth2App(appId));
3029
const appName = oauth2AppQuery.data?.name;

0 commit comments

Comments
 (0)