Skip to content

Commit 2921d4d

Browse files
authored
Merge pull request #77 from sungmin-choi/dev
fix)카드 생성시 mycards 생성카드 중복생성 버그 수정
2 parents a6bf5cc + 7f25000 commit 2921d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/reducers/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const reducer = (state = initialized, action) =>
5959
break;
6060
}
6161
case LOAD_MY_CARDS_SUCCESS:
62-
draft.myCards = draft.myCards.concat(...action.data);
62+
draft.myCards = [...action.data];
6363
draft.isLoadMyCards = true;
6464
break;
6565
case DELETE_USER_SUCCESS:

0 commit comments

Comments
 (0)