mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 09:09:48 +00:00
19 lines
344 B
TypeScript
19 lines
344 B
TypeScript
// @ts-nocheck
|
|
import { createReducer } from '@reduxjs/toolkit';
|
|
import t from '@/store/types';
|
|
|
|
const initialState = {
|
|
data: {},
|
|
};
|
|
|
|
export default createReducer(initialState, {
|
|
['GLOBAL_ERRORS_SET']: (state, action) => {
|
|
const { errors } = action.payload;
|
|
|
|
state.data = {
|
|
...state.data,
|
|
...errors,
|
|
};
|
|
},
|
|
});
|