充值商品列表只展示泥点商品

refreshProducts 过滤 response.entries,仅保留 kind === 'points'
避免历史会员商品行被渲染成 0 + 0 泥点,且保存时必然被后端拒绝

Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
2026-10-03 11:15:20 +08:00
parent 848f0b54c8
commit 5fabe6f2f7
@@ -68,7 +68,10 @@ export function AdminRechargeProductPage({
setListErrorMessage('');
try {
const response = await listProfileRechargeProducts(token);
const sortedEntries = sortProducts(response.entries);
// 中文注释:历史会员商品行已迁到「会员档位」页,本页只维护泥点商品,避免误展示为 0 + 0 泥点。
const sortedEntries = sortProducts(
response.entries.filter((entry) => entry.kind === 'points'),
);
setEntries(sortedEntries);
const firstEntry = sortedEntries[0];
if (firstEntry) {