Skip to content

Commit b12c91a

Browse files
authored
Don't prepend success/error suffixes with "_"
1 parent ac43ce0 commit b12c91a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/getActionTypes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const SUCCESS_SUFFIX = 'SUCCESS';
2-
export const ERROR_SUFFIX = 'FAIL';
1+
export const SUCCESS_SUFFIX = '_SUCCESS';
2+
export const ERROR_SUFFIX = '_FAIL';
33

44
export const getActionTypes = (action, {
55
errorSuffix = ERROR_SUFFIX,
@@ -8,7 +8,7 @@ export const getActionTypes = (action, {
88
let types;
99
if (typeof action.type !== 'undefined') {
1010
const { type } = action;
11-
types = [type, `${type}_${successSuffix}`, `${type}_${errorSuffix}`];
11+
types = [type, `${type}${successSuffix}`, `${type}${errorSuffix}`];
1212
} else if (typeof action.types !== 'undefined') {
1313
types = action.types;
1414
} else {

0 commit comments

Comments
 (0)