fix: 修复分类视图展示逻辑错误
This commit is contained in:
parent
63149f9abb
commit
a0d47864d8
@ -132,7 +132,11 @@ fun CategoryDetailScreen(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(200.dp),
|
||||
onCategoryClick = { memberName -> onNavigateToMemberDetail(memberName) }
|
||||
onCategoryClick = { memberName ->
|
||||
if (records.isNotEmpty() && records.first().type == TransactionType.EXPENSE) {
|
||||
onNavigateToMemberDetail(memberName)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user