Hot fixed and format code

This commit is contained in:
2023-11-03 10:18:57 +07:00
parent 48af6272b3
commit ae7c25e6f3
11 changed files with 46 additions and 38 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ const useFetch = (
keyWord: string = '',
tempSortBy?: string,
tempOrderBy?: string,
reload?: boolean
reload?: boolean,
) => {
const [data, setData] = useState(null);
const [isPending, setIsPending] = useState(false);
@@ -56,7 +56,7 @@ const useFetch = (
if (!response.ok)
throw new Error(
`Error code: ${response.status} \n Messages: ${response.statusText}`
`Error code: ${response.status} \n Messages: ${response.statusText}`,
);
setIsPending(false);