Skip to content

Commit 66086fb

Browse files
fix issue
1 parent 18a06fb commit 66086fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/productcontext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const AppProvider = ({ children }) => {
1818
const[state, dispatch] = useReducer(reducer, initialState)
1919

2020
const getProducts = async (url)=>{
21-
dispatch({try:"SET_LOADING"})
21+
dispatch({type:"SET_LOADING"})
2222
try {
2323
const res = await axios.get(url)
2424
const products = await res.data

0 commit comments

Comments
 (0)