diff --git a/app/src/main/java/com/wafflestudio/snutt2/views/logged_in/home/search/SearchPageDialogs.kt b/app/src/main/java/com/wafflestudio/snutt2/views/logged_in/home/search/SearchPageDialogs.kt index 8aa8ec2dc..6933ea949 100644 --- a/app/src/main/java/com/wafflestudio/snutt2/views/logged_in/home/search/SearchPageDialogs.kt +++ b/app/src/main/java/com/wafflestudio/snutt2/views/logged_in/home/search/SearchPageDialogs.kt @@ -59,7 +59,7 @@ fun checkLectureOverlap( when (e) { is ErrorParsedHttpException -> { if (e.errorDTO?.code == ErrorCode.LECTURE_TIME_OVERLAP) { - onLectureOverlap(e.errorDTO.ext?.get("confirm_message") ?: "") + onLectureOverlap(e.errorDTO.displayMessage ?: "") } else { apiOnError(e) }