Skip to content

Commit

Permalink
๐Ÿ›  fix(#211): ํ•  ์ผ ์นด๋“œ ๋ชจ๋‹ฌ ์—ฌ๋Š” ๊ณณ๋งˆ๋‹ค isMember ์ธ์ž ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
un0211 committed Jul 7, 2024
1 parent d9b8b53 commit 511f04a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Modal/EditCardModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ export default function EditCardModal({ column, isEdit = false, card }: EditCard
if (responseCard && isEdit) {
const columnToOpen = columns.find((col) => col.id === responseCard.columnId);
const cardToOpen = responseCard;
openTodoCardModal({ card: cardToOpen, column: columnToOpen as Column });
// NOTE: ์—ฌ๊ธฐ ์ ‘๊ทผํ–ˆ๋‹ค๋Š” ๊ฒƒ๋ถ€ํ„ฐ ์ˆ˜์ • ๊ถŒํ•œ์ด ์žˆ๋‹ค๋Š” ๋œป -> isMember = true
openTodoCardModal({ card: cardToOpen, column: columnToOpen as Column, isMember: true });
} else {
openNotificationModal({ text: 'ํ•  ์ผ ์นด๋“œ๊ฐ€ ์ƒ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!' });
}
Expand Down Expand Up @@ -437,7 +438,8 @@ export default function EditCardModal({ column, isEdit = false, card }: EditCard
type='button'
onClick={() => {
if (isEdit && card) {
openTodoCardModal({ card: card, column: column });
// NOTE: ์—ฌ๊ธฐ ์ ‘๊ทผํ–ˆ๋‹ค๋Š” ๊ฒƒ๋ถ€ํ„ฐ ์ˆ˜์ • ๊ถŒํ•œ์ด ์žˆ๋‹ค๋Š” ๋œป -> isMember = true
openTodoCardModal({ card: card, column: column, isMember: true });
} else {
closeModal();
}
Expand Down

0 comments on commit 511f04a

Please sign in to comment.