Skip to content

Commit 766c960

Browse files
committed
fix: correct filter function parameter names for contributors, supporters, and partners
1 parent 101e127 commit 766c960

File tree

1 file changed

+3
-3
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/contributors

1 file changed

+3
-3
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/contributors/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const Details = () => {
108108
setFormData((prev) => ({
109109
...prev,
110110
contributors: prev.contributors.filter(
111-
(item) => item.value !== item.value
111+
(contributor) => contributor.value !== item.value
112112
),
113113
}))
114114
}
@@ -164,7 +164,7 @@ const Details = () => {
164164
setFormData((prev) => ({
165165
...prev,
166166
supporters: prev.supporters.filter(
167-
(item) => item.value !== item.value
167+
(supporter) => supporter.value !== item.value
168168
),
169169
}))
170170
}
@@ -220,7 +220,7 @@ const Details = () => {
220220
setFormData((prev) => ({
221221
...prev,
222222
partners: prev.partners.filter(
223-
(item) => item.value !== item.value
223+
(partner) => partner.value !== item.value
224224
),
225225
}))
226226
}

0 commit comments

Comments
 (0)