fix: 修复分类视图展示逻辑错误

This commit is contained in:
yovinchen 2024-12-05 11:43:44 +08:00
parent 63149f9abb
commit a0d47864d8

View File

@ -132,7 +132,11 @@ fun CategoryDetailScreen(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()
.height(200.dp), .height(200.dp),
onCategoryClick = { memberName -> onNavigateToMemberDetail(memberName) } onCategoryClick = { memberName ->
if (records.isNotEmpty() && records.first().type == TransactionType.EXPENSE) {
onNavigateToMemberDetail(memberName)
}
}
) )
} }
} }