remove unused formatErrors function

This commit is contained in:
leander committed 2024-08-01 17:06:41 +02:00
1 parent 21e3bdd96e
commit 09497313f2
1 file changed
-8
-8
View File
@@ -37,14 +37,6 @@ const initialState: RootState = {
registerError: null,
};
function formatErrors(errs: Record<string, string | string[]>) {
const errors: Record<string, string> = {};
Object.entries(errs).forEach(([key, value]) => {
errors[snakeToCamelCase(key)] = Array.isArray(value) ? value.join('\n') : value;
});
return errors;
}
// FIXME: refactor using redux slices
// eslint-disable-next-line @typescript-eslint/default-param-last, @typescript-eslint/no-explicit-any
export default function appReducers(state = initialState, action: any) {