Skip to content

Commit

Permalink
fix: πŸ› error not clear when promise success
Browse files Browse the repository at this point in the history
  • Loading branch information
ariesjia committed May 30, 2020
1 parent 6f2d901 commit ffe6737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const usePromiseCall = <T = any, K = any>(
res => {
dispatch({
data: res,
error: null,
loading: false,
});
},
Expand Down

0 comments on commit ffe6737

Please sign in to comment.