File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ function reduxGraphql(options) {
27
27
const { dispatch } = this . props ;
28
28
return async ( ...args ) => {
29
29
dispatch ( {
30
- type : prefix + options . name | > snakeCase | > toUpper ,
30
+ type : prefix + ( options . name | > snakeCase | > toUpper ) ,
31
31
payload : args [ 0 ] ,
32
32
} ) ;
33
33
try {
34
34
const result = await mutation ( ...args ) ;
35
35
dispatch ( {
36
- type : prefix + options . name + '_success' | > snakeCase | > toUpper ,
36
+ type : prefix + ( options . name + '_success' | > snakeCase | > toUpper ) ,
37
37
payload : {
38
38
result,
39
39
args : args [ 0 ] ,
@@ -43,7 +43,7 @@ function reduxGraphql(options) {
43
43
}
44
44
catch ( error ) {
45
45
dispatch ( {
46
- type : prefix + options . name + '_fail' | > snakeCase | > toUpper ,
46
+ type : prefix + ( options . name + '_fail' | > snakeCase | > toUpper ) ,
47
47
payload : args [ 0 ] ,
48
48
meta : { error } ,
49
49
} ) ;
You can’t perform that action at this time.
0 commit comments