Skip to content

Commit 5783c7b

Browse files
authored
Update UserPage.js
1 parent fc288f9 commit 5783c7b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

order-ui/src/components/user/UserPage.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ function UserPage() {
1717

1818
useEffect(() => {
1919
async function fetchData() {
20-
setIsLoading(true);
20+
setIsLoading(true)
2121

2222
try {
23-
const response = await orderApi.getUserMe(user);
24-
setUserMe(response.data);
23+
const response = await orderApi.getUserMe(user)
24+
setUserMe(response.data)
2525
} catch (error) {
26-
handleLogError(error);
26+
handleLogError(error)
2727
} finally {
28-
setIsLoading(false);
28+
setIsLoading(false)
2929
}
3030
}
3131

32-
fetchData();
33-
}, []);
32+
fetchData()
33+
}, [])
3434

3535
const handleInputChange = (e, { name, value }) => {
3636
if (name === 'orderDescription') {

0 commit comments

Comments
 (0)