Skip to content

Commit 992ff4f

Browse files
committed
[BOOK-256] fix: 토끼 리뷰 반영
1 parent 2e0bd37 commit 992ff4f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

feature/search/src/main/kotlin/com/ninecraft/booket/feature/search/book/BookSearchPresenter.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.ninecraft.booket.feature.search.book
33
import androidx.compose.foundation.text.input.clearText
44
import androidx.compose.foundation.text.input.rememberTextFieldState
55
import androidx.compose.runtime.Composable
6-
import androidx.compose.runtime.LaunchedEffect
76
import androidx.compose.runtime.getValue
87
import androidx.compose.runtime.mutableIntStateOf
98
import androidx.compose.runtime.mutableStateOf
@@ -98,6 +97,9 @@ class BookSearchPresenter @AssistedInject constructor(
9897
}
9998

10099
analyticsHelper.logEvent(SEARCH_BOOK_RESULT)
100+
if (startIndex == START_INDEX && result.books.isEmpty()) {
101+
analyticsHelper.logEvent(SEARCH_BOOK_NO_RESULT)
102+
}
101103
}
102104
.onFailure { exception ->
103105
Logger.d(exception)
@@ -240,12 +242,6 @@ class BookSearchPresenter @AssistedInject constructor(
240242
}
241243
}
242244

243-
LaunchedEffect(recentSearches, uiState) {
244-
if (recentSearches.isEmpty() && uiState is UiState.Idle) {
245-
analyticsHelper.logEvent(SEARCH_BOOK_NO_RESULT)
246-
}
247-
}
248-
249245
return BookSearchUiState(
250246
uiState = uiState,
251247
footerState = footerState,

feature/settings/src/main/kotlin/com/ninecraft/booket/feature/settings/SettingsPresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SettingsPresenter @AssistedInject constructor(
3333

3434
companion object {
3535
private const val SETTINGS_LOGOUT_COMPLETE = "settings_logout_complete"
36-
private const val SETTINGS_WITHDRAWAL_COMPLETE = "settings_withdrawal_warning"
36+
private const val SETTINGS_WITHDRAWAL_COMPLETE = "settings_withdrawal_complete"
3737
private const val SETTINGS_WITHDRAWAL_WARNING = "settings_withdrawal_warning"
3838
}
3939

0 commit comments

Comments
 (0)