KYC management: stage-wise notices, pagination, RD base chart
This commit is contained in:
@@ -62,3 +62,17 @@ export function toProperNameCase(value: string | null | undefined): string {
|
||||
}
|
||||
return collapsed.split(' ').map(capitalizeWord).join(' ');
|
||||
}
|
||||
|
||||
/**
|
||||
* Title case for an individual's first, middle and last name: each word's first letter raised,
|
||||
* the rest lowered, so 'SIngh' and 'singh' both become 'Singh'. This is what the Full Name line on
|
||||
* the general step has always shown; using it for the stored value too keeps the preview and the
|
||||
* saved client the same as that line. Entity names stay on {@link toProperNameCase} — their
|
||||
* spelling is matched against the registered PAN name.
|
||||
*/
|
||||
export function toPersonNameCase(value: string | null | undefined): string {
|
||||
if (typeof value !== 'string') {
|
||||
return '';
|
||||
}
|
||||
return toProperNameCase(value.toLowerCase());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user