Skip to content

Commit

Permalink
fix: 후원 로그인 후 이용가능하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ej070961 committed Aug 10, 2024
1 parent 63ed0d4 commit d02765c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/SponsorDetail/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ function Header({ memberId, nickname }: HeaderProps) {
</ColBox>
</RowBox>
{memberId !== currentUserId! ? (
<StyledBtn main onClick={() => setIsOpenDonate(!isOpenDonate)}>
<StyledBtn
main
onClick={() =>
accessToken === ""
? alert("로그인 후 이용가능한 기능입니다.")
: setIsOpenDonate(!isOpenDonate)
}
>
후원하기
</StyledBtn>
) : (
Expand Down

0 comments on commit d02765c

Please sign in to comment.