codestates / codestates/Donorticon
[Error Handling] 게스트모드 혹은 소셜로그인 시 기프티콘 후원 에러
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### 관련 Issue
Gifticon donation 기능
### 어떤 문제인가요?
일반 로그인을 했을 때는 기프티콘 기부가 잘 작동하고 있습니다.
다만 게스트모드 혹은 소셜로그인 시 에러가 발생하고 있습니다.
한가지 짐잡가는 부분은
pages > HelperList > HelperDetail 파일에서 아래와 같이 유저의 아이디를 받아서 사용하고 있습니다.
```jsx
const giverId = useSelector((state) => state.user.user.id);
```
혹시 게스트모드와 소셜로그인의 경우 store에 아이디 저장이 다르게 되나요?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in pages/HelperList/HelperDetail and inspect how giverId is read from state.user.user.id. Compare the user state stored for guest mode and social login with the state produced by regular login, then trace the gifticon donation request. Done means gifticon donation works for both guest and social-login users without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100