fix: remove sensitive data masking from student options label

This commit is contained in:
xyx
2026-07-13 15:27:17 +08:00
parent 910a4263f6
commit ebce2463f0

View File

@@ -17,7 +17,6 @@ import {
import { PlusOutlined, DeleteOutlined, DollarOutlined } from '@ant-design/icons';
import dayjs from 'dayjs';
import api from '../../api';
import { maskPhone, maskIdNumber } from '../../utils/sensitive';
import PermissionButton from '../../components/PermissionButton';
import { message } from '../../ui/app-message';
@@ -91,10 +90,9 @@ const DepositsPage: React.FC = () => {
const studentOptions = useMemo(
() =>
students
.filter((s: any) => s.status === 'active')
.map((s: any) => ({
value: s.id,
label: `${s.name} (${s.idNumber ? maskIdNumber(s.idNumber) : (s.phone ? maskPhone(s.phone) : '')})`,
label: s.studentNo ? `${s.name} (${s.studentNo})` : s.name,
})),
[students],
);