Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -38,6 +38,7 @@ export function simulationApiFieldErrors(
|
||||
for (const [path, messages] of Object.entries(value.errors ?? {})) {
|
||||
const key = path
|
||||
.replace(/^(economic_snapshot|personal_snapshot)\./, '')
|
||||
.replace(/^selection_labels\./, '')
|
||||
.split('.')[0];
|
||||
if (/^[a-z][a-z0-9_]*$/.test(key) && messages.length)
|
||||
fields[key] = messages.join(' ');
|
||||
|
||||
Reference in New Issue
Block a user