Skip to content

Commit

Permalink
fixed cids include function
Browse files Browse the repository at this point in the history
  • Loading branch information
baufaker committed Apr 2, 2024
1 parent 05a9b9d commit bcf79a9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/ui/MyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,14 @@ function MyInfo() {
<li
class="cursor-pointer"
onClick={() => {
setCids([...cids, cid]);
if (
!cids.find((c) =>
(c as { full_code: string }).full_code ===
cid.full_code
)
) {
setCids([...cids, cid]);
}
}}
>
{cid.full_code} - {cid.name}
Expand Down

0 comments on commit bcf79a9

Please sign in to comment.