TP-85622 | Handle empty case overlay (#13145)

This commit is contained in:
Abhinav Gupta
2024-10-16 14:27:00 +05:30
committed by GitHub
parent dbed003f6c
commit b96800245c
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ class PopupReducer : BaseReducer<PopupState, PopupEvent> {
previousState.copy(
popupList = event.data,
isCloseAllButtonVisible = true,
isPopupListVisible = true,
isPopupListVisible = event.popupListVisibilityState,
)
}
is PopupEvent.DeletePopup -> {

View File

@@ -126,7 +126,7 @@ constructor(
lastViewedNudgeIds.addAll(updatedNudgeList.mapNotNull { it.nudgeId })
}
popupListData?.popupList?.let {
sendEvent(PopupEvent.UpdatePopupData(it, popupListVisibilityState = true))
sendEvent(PopupEvent.UpdatePopupData(it, popupListVisibilityState = it.isNotEmpty()))
}
selectiveRefreshHandler.handleSuccessState(
this,