Skip to content

Commit

Permalink
README.md 수정 및 후원 기능 0원이하 못하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
alaneelee committed Jan 11, 2024
1 parent 8f448dc commit ff6db15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
시청자들이 이를 시청하고 채팅과 후원으로 소통하는 서비스입니다.
```

## 소개 영상 (예정)
## 소개 영상



https://youtu.be/gUTpnhFRUK8

## | Service Architecture ⚙

Expand Down
17 changes: 10 additions & 7 deletions src/modal/DonationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ const Donation = ({ closeModal, streamerId }) => {

const fetchData = async () => {
try {
const response = await axios.get(`${process.env.REACT_APP_API_URL}/api/point`, {
headers: {
Authorization: accessToken,
},
});
const response = await axios.get(
`${process.env.REACT_APP_API_URL}/api/point`,
{
headers: {
Authorization: accessToken,
},
}
);
setPointData(response.data);
console.log('GET 요청 성공:', response.data);
} catch (error) {
Expand All @@ -125,8 +128,8 @@ const Donation = ({ closeModal, streamerId }) => {
const handleDonation = async (e) => {
e.preventDefault();

if (amount < 0) {
alert('음수로는 후원할 수 없어요');
if (amount <= 0) {
alert('0이나 음수로는 후원할 수 없어요');
return;
}

Expand Down

0 comments on commit ff6db15

Please sign in to comment.