Skip to content

Commit ae57b44

Browse files
committed
refactor: updateResponseに初期値を設定
1 parent af39076 commit ae57b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atcoder-problems-frontend/src/pages/Internal/VirtualContest/ContestUpdatePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const createAndUpdateContest = async (
3939
export const ContestUpdatePage = (props: Props) => {
4040
const { contestId } = props;
4141
const contestResponse = useVirtualContest(contestId);
42-
const [updateResponse, setUpdateResponse] = React.useState<boolean>();
42+
const [updateResponse, setUpdateResponse] = React.useState<boolean>(false);
4343
if (!contestResponse.data && !contestResponse.error) {
4444
return <Spinner style={{ width: "3rem", height: "3rem" }} />;
4545
} else if (contestResponse.error || !contestResponse.data) {

0 commit comments

Comments
 (0)