Skip to content

Commit

Permalink
Fix: 면접 신청 인원 초과시 에러 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
mingd1023 committed Aug 20, 2021
1 parent a176220 commit 4b28f99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/containers/apply/InterviewContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import Interview from '../../components/apply/Interview/Interview';
import InterviewAccessDenied from '../../components/apply/Interview/InterviewAccessDenied';
import { SUCCESS } from '../../constants/statusCode';
import { CLIENT_ERROR, SUCCESS } from '../../constants/statusCode';
import * as infoAPI from '../../lib/api/info';
import * as interviewAPI from '../../lib/api/interview';

Expand Down Expand Up @@ -38,8 +38,12 @@ const InterviewContainer = () => {
setData(res.data.data);
setMySlotId(slotId);
alert('성공적으로 신청되었습니다.');
} else if (res.status === CLIENT_ERROR.CONFLICT) {
alert('[신청 실패] 면접 인원이 가득 찼습니다.');
window.location.reload();
} else {
alert('면접 신청에 실패하였습니다.');
window.location.reload();
}
});
};
Expand Down

0 comments on commit 4b28f99

Please sign in to comment.