Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Sep 7, 2024
1 parent edf875c commit 820c38d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/molecules/cards/PostThumbnailCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export function PostThumbnailCard({
},
}: IPostThumbnailCardObj) {
const toast = useToast();


const userAvatarArr = participants
?.filter((par) => par)
Expand Down Expand Up @@ -82,7 +81,10 @@ export function PostThumbnailCard({
const preferenceStorage = localStorage.getItem(STUDY_PREFERENCE_LOCAL);
const savedPrefer = JSON.parse(preferenceStorage) as IStudyVotePlaces;

const newPrefer = { ...savedPrefer };
const newPrefer: IStudyVotePlaces = {
place: savedPrefer?.place,
subPlace: savedPrefer?.subPlace || [],
};
if (isHeart) {
if (savedPrefer.place === id) {
newPrefer.place = savedPrefer.subPlace?.[0];
Expand Down

0 comments on commit 820c38d

Please sign in to comment.