Skip to content

Commit

Permalink
#21 Refactor: setUser 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yunseul-dev committed Dec 7, 2023
1 parent c53460d commit 7a39971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/authPage/SignInOnlyCulPop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const SignInOnlyCulPop = () => {

const handleSubmit = async data => {
try {
const user = await axios.get('/users/login', data);
await axios.get('/users/login', data);

setUser(user);
setUser(data.email);
navigate('/');
} catch (error) {
const message = error.response && error.response.statusCode === 401 ? error.response.statusMessage : undefined;
Expand Down

0 comments on commit 7a39971

Please sign in to comment.