diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt index 77b10e2..743dcc9 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt @@ -24,11 +24,11 @@ fun FeedbackScreen(onClosed: () -> Unit) { val messageLog by remember { mutableStateOf(DI.bankingService.getMessageLog()) } - val displayedLogEntries by remember { derivedStateOf { messageLog } } + val displayedLogEntries by remember { derivedStateOf { messageLog.sortedBy { it.messageNumber } } } val displayedLogEntriesText by remember(displayedLogEntries) { derivedStateOf { displayedLogEntries.map { - "${it.messageNumberString} ${it.type} ${it.messageCategory} ${it.messageSubCategory}${NewLine}${it.message}" + "${it.messageNumberString} ${it.bank?.displayName ?: ""} ${it.account?.displayName ?: ""} ${it.type} ${it.jobType} ${it.messageCategory}${NewLine}${it.message}" }.joinToString(NewLine + NewLine) } }