mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Hot fixed and format code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user