mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-31 14:00:18 +02:00
fix(logged_stories): null timestamp
This commit is contained in:
parent
2cb74ecafb
commit
68f066b2b8
@ -98,12 +98,20 @@ class LoggedStories : Routes.Route() {
|
|||||||
.fillMaxWidth(),
|
.fillMaxWidth(),
|
||||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
) {
|
) {
|
||||||
Text(text = "Posted on ${story.postedAt.let {
|
remember {
|
||||||
DateFormat.getDateTimeInstance().format(Date(it))
|
story.postedAt.takeIf { it >= 0L }?.let {
|
||||||
}}")
|
DateFormat.getDateTimeInstance().format(Date(it))
|
||||||
Text(text = "Created at ${story.createdAt.let {
|
}
|
||||||
DateFormat.getDateTimeInstance().format(Date(it))
|
}?.let {
|
||||||
}}")
|
Text(text = "Posted at $it")
|
||||||
|
}
|
||||||
|
remember {
|
||||||
|
story.createdAt.takeIf { it >= 0L }?.let {
|
||||||
|
DateFormat.getDateTimeInstance().format(Date(it))
|
||||||
|
}
|
||||||
|
}?.let {
|
||||||
|
Text(text = "Created at $it")
|
||||||
|
}
|
||||||
|
|
||||||
FlowRow(
|
FlowRow(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user