Skip to content

Commit 97ed80a

Browse files
committed
refactor :: reviewProcess 상태 값 변경
1 parent 711ac01 commit 97ed80a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package team.retum.common.enums
22

33
enum class ReviewProcess {
4-
QUESTION,
5-
TECH,
6-
FINISH,
4+
INTERVIEW_TYPE,
5+
INTERVIEW_LOCATION,
6+
TECH_STACK,
7+
INTERVIEWER_COUNT,
8+
SUMMARY
79
}

feature/post-review/src/main/java/team/retum/post_review/viewmodel/PostReviewViewModel.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ internal class PostReviewViewModel @Inject constructor(
7878
jobCode = reviewData.jobCode,
7979
interviewerCount = reviewData.interviewerCount,
8080
qnaElements = reviewData.qnaElements.map { it.toEntity() },
81-
question = state.value.question,
82-
answer = state.value.answer,
81+
question = reviewData.question,
82+
answer = reviewData.answer,
8383
)
8484
).onSuccess {
8585
postSideEffect(PostReviewSideEffect.Success)
@@ -131,7 +131,7 @@ internal class PostReviewViewModel @Inject constructor(
131131

132132
private fun setButtonEnabled() {
133133
when (state.value.reviewProcess) {
134-
ReviewProcess.QUESTION -> {
134+
ReviewProcess.INTERVIEW_TYPE -> {
135135
setState { state.value.copy(buttonEnabled = state.value.question.isNotEmpty() && state.value.answer.isNotEmpty()) }
136136
}
137137

@@ -228,7 +228,7 @@ internal data class PostReviewState(
228228
selectedTech = 0,
229229
tech = null,
230230
buttonEnabled = false,
231-
reviewProcess = ReviewProcess.QUESTION,
231+
reviewProcess = ReviewProcess.INTERVIEW_TYPE,
232232
interviewType = InterviewType.INDIVIDUAL,
233233
interviewLocation = InterviewLocation.DAEJEON, // TODO :: 널처리(선택 해제) 고려
234234
count = "",

0 commit comments

Comments
 (0)