We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af39076 commit ae57b44Copy full SHA for ae57b44
atcoder-problems-frontend/src/pages/Internal/VirtualContest/ContestUpdatePage.tsx
@@ -39,7 +39,7 @@ const createAndUpdateContest = async (
39
export const ContestUpdatePage = (props: Props) => {
40
const { contestId } = props;
41
const contestResponse = useVirtualContest(contestId);
42
- const [updateResponse, setUpdateResponse] = React.useState<boolean>();
+ const [updateResponse, setUpdateResponse] = React.useState<boolean>(false);
43
if (!contestResponse.data && !contestResponse.error) {
44
return <Spinner style={{ width: "3rem", height: "3rem" }} />;
45
} else if (contestResponse.error || !contestResponse.data) {
0 commit comments