Skip to content

Commit

Permalink
🚀 Deploy #63
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 authored Nov 14, 2024
2 parents 75c3cad + df9248d commit 7442d17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/hooks/useForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const useForm = (atomState) => {
...prevForm,
[name]: value,
}));
console.log("입력된 정보:", { ...form, [name]: value });
};

const isValid = Object.values(form).every((value) => value.trim() !== "");
Expand Down
6 changes: 6 additions & 0 deletions src/pages/nuguPatch/NuguPatch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export const NuguPatch = () => {
try {
const userData = await getNugu();
setUpdateData(userData);
const initialSelectedChips = [
userData.keyword1,
userData.keyword2,
userData.keyword3,
];
handleClickStatus(initialSelectedChips);
} catch (err) {
console.error("Patch-user정보 가져오기 실패", err);
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/nuguPatch/_hooks/usePatchChip.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const usePatchChip = () => {

const handleClickStatus = (index) => {
const updatedChip = [...selectedChip];
console.log(updatedChip);
updatedChip[index] = !updatedChip[index];
if (updatedChip.filter((chip) => chip).length > 3) {
return;
Expand Down

0 comments on commit 7442d17

Please sign in to comment.