pin status
This commit is contained in:
@ -183,33 +183,38 @@ export default function AdmAccess({page,groups,formData,handleClose,fetchCustome
|
||||
}
|
||||
|
||||
function getPinStatus(status: string) {
|
||||
if (status === 'Y')
|
||||
return {
|
||||
msg: 'Active',
|
||||
btn: 'Block PIN',
|
||||
res: 'Block'
|
||||
};
|
||||
// if (status === 'Y')
|
||||
// return {
|
||||
// msg: 'Active',
|
||||
// btn: 'Block PIN',
|
||||
// res: 'Block'
|
||||
// };
|
||||
if (status === 'N')
|
||||
return {
|
||||
msg: 'Not Active',
|
||||
btn: 'Activate PIN',
|
||||
res: null
|
||||
};
|
||||
if (status === 'P')
|
||||
return {
|
||||
msg: 'Suspend PIN',
|
||||
btn: 'Unblock PIN',
|
||||
res: 'UnBlock'
|
||||
};
|
||||
if (status === 'O')
|
||||
return {
|
||||
msg: 'Suspend OTP',
|
||||
btn: 'Unblock OTP',
|
||||
res: null
|
||||
};
|
||||
// if (status === 'P')
|
||||
// return {
|
||||
// msg: 'Suspend PIN',
|
||||
// btn: 'Unblock PIN',
|
||||
// res: 'UnBlock'
|
||||
// };
|
||||
// if (status === 'O')
|
||||
// return {
|
||||
// msg: 'Suspend OTP',
|
||||
// btn: 'Unblock OTP',
|
||||
// res: null
|
||||
// };
|
||||
// return {
|
||||
// msg: 'None',
|
||||
// btn: 'No status found',
|
||||
// res: null
|
||||
// };
|
||||
return {
|
||||
msg: 'None',
|
||||
btn: 'No status found',
|
||||
res: null
|
||||
msg: 'Active',
|
||||
btn: 'Block PIN',
|
||||
res: 'Block'
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user