We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 694d092 commit b3dbb61Copy full SHA for b3dbb61
client/src/store/actions.js
@@ -16,8 +16,9 @@ export default {
16
17
resetMessages({ commit }) {
18
commit(TYPES.MAIN_SET_MESSAGE, { type: 'success', message: '' })
19
- commit(TYPES.MAIN_SET_MESSAGE, { type: 'error', message: '' })
+ commit(TYPES.MAIN_SET_MESSAGE, { type: 'error', message: [] })
20
commit(TYPES.MAIN_SET_MESSAGE, { type: 'warning', message: '' })
21
+ commit(TYPES.MAIN_SET_MESSAGE, { type: 'validation', message: {} })
22
},
23
24
setToken({ commit }, token) {
client/src/store/state.js
@@ -5,8 +5,9 @@ export default {
5
user: {},
6
messages: {
7
success: '',
8
- error: '',
+ error: [],
9
warning: '',
10
+ validation: {},
11
12
fetching: false,
13
}
0 commit comments