fix: complete V09 financial diagnostic coverage in isolated QA
This commit is contained in:
@@ -136,9 +136,19 @@ export function correctionFieldHints(
|
||||
]),
|
||||
];
|
||||
}
|
||||
export function fieldLabelMatches(label: string, hint: string): boolean {
|
||||
export function fieldLabelMatches(
|
||||
label: string,
|
||||
hint: string,
|
||||
availableLabels?: string[] | Set<string>,
|
||||
): boolean {
|
||||
const a = normaliseFieldLabel(label),
|
||||
b = normaliseFieldLabel(hint);
|
||||
if (
|
||||
availableLabels instanceof Set
|
||||
? availableLabels.has(b)
|
||||
: availableLabels?.some((value) => normaliseFieldLabel(value) === b)
|
||||
)
|
||||
return a === b;
|
||||
return (
|
||||
!!a &&
|
||||
!!b &&
|
||||
|
||||
Reference in New Issue
Block a user