forked from wangziqi/gongxue-base
fix: remove sensitive data masking from student options label
This commit is contained in:
@@ -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],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user