mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-04 14:52:40 -08:00
9 lines
233 B
TypeScript
9 lines
233 B
TypeScript
const hasErrors = (form: any) => {
|
|
const formKeys = Object.keys(form);
|
|
for (const currentKey of formKeys) {
|
|
if (currentKey.endsWith('Error') && form[currentKey]) return true;
|
|
}
|
|
return false;
|
|
};
|
|
|
|
export default hasErrors;
|