Skip to content

Commit

Permalink
fix/#47: isFail 필드명 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ABizCho committed Aug 29, 2024
1 parent 62a237d commit 5cb9a39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ssh-web/src/interfaces/eggInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface IPaginatedTrades {
}

export interface ISpecialEggReward {
isFailed: boolean;
isFail: boolean;
specialEggId?: number;
specialEggName?: string;
imageUrl?: string;
Expand Down
4 changes: 2 additions & 2 deletions ssh-web/src/pages/Egg/components/TodayEgg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const TodayEgg = () => {
setCollectedAmount((prev) => prev + 1);
setTouchesLeft((prev) => prev - 1); // 남은 터치 횟수 감소

if (reward && reward?.isFailed === false) {
if (reward && reward?.isFail === false) {
console.log('보상 도착:', reward);
setModalState({
isOpen: true,
Expand Down Expand Up @@ -94,7 +94,7 @@ export const TodayEgg = () => {
});
}

if (reward && reward?.isFailed === true) {
if (reward && reward?.isFail === true) {
console.log('보상 도착:', reward);
setModalState({
isOpen: true,
Expand Down

0 comments on commit 5cb9a39

Please sign in to comment.