Skip to content

Commit

Permalink
feat: ranking null값 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed May 8, 2024
1 parent cd0be6f commit 68cbe2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ fun NightHomePageContent(
}
}
Spacer(modifier = Modifier.height(36.dp))
if (ranking.isAllRankersNull()) {
if (ranking.isAllRankersNull() || ranking.mostRecentSurvivalPostDate == null) {
Text(
text = stringResource(id = R.string.home_no_before_survival),
style = MaterialTheme.bbibbiTypo.bodyOneBold,
Expand All @@ -269,7 +269,7 @@ fun NightHomePageContent(
text = stringResource(id = R.string.home_see_before_survival),
modifier = Modifier.fillMaxWidth(),
onClick = {
ranking.mostRecentSurvivalPostDate?.apply(onTapViewPost)
ranking.mostRecentSurvivalPostDate.apply(onTapViewPost)
},
)
}
Expand Down

0 comments on commit 68cbe2a

Please sign in to comment.