Skip to content

Commit

Permalink
Merge pull request #65 from ej070961/develop
Browse files Browse the repository at this point in the history
fix: 후원 로그인 후 이용가능하게 수정
  • Loading branch information
ej070961 authored Aug 10, 2024
2 parents 63ed0d4 + d02765c commit 4a68114
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 4a68114

Please sign in to comment.