Skip to content

Commit

Permalink
Revert "[FIX] 타이머 오류 해결"
Browse files Browse the repository at this point in the history
This reverts commit 5359f01.
  • Loading branch information
kkk5474096 committed Jul 22, 2023
1 parent 5359f01 commit fba9db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class YelloViewModel @Inject constructor(
}

_point.value = voteState.point
if (voteState.isStart) {
if (voteState.isStart || voteState.leftTime !in 1..SEC_MAX_LOCK_TIME) {
_yelloState.value = Success(Valid(voteState.point))
return@launch
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ data class ResponseGetVoteAvailableDto(
val targetDateTime = dateFormat.parse(this)?.time ?: return 0
val timeDifference = targetDateTime - currentTime

Timber.d("REMAINING TIME : ${timeDifference / 1000}")
Timber.d("REMAINING TIME : ${(timeDifference / 1000) + 2400}")

timeDifference / 1000
(timeDifference / 1000) + 2400
} catch (e: ParseException) {
e.printStackTrace()
2400
Expand Down

0 comments on commit fba9db6

Please sign in to comment.