Skip to content

Commit cc3d8a1

Browse files
committed
fix checklist
1 parent d1f9a4f commit cc3d8a1

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

packages/round-manager/src/features/round/ViewFundGrantees.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,28 +428,32 @@ export function PayProjectsTable(props: {
428428
<tr
429429
key={project.projectId}
430430
className={
431-
selectedProjects.includes(project)
431+
selectedProjects.some(
432+
(p) => p.projectId === project.projectId
433+
)
432434
? "bg-gray-50"
433435
: undefined
434436
}
435437
>
436438
<td className="relative px-7 sm:w-12 sm:px-6">
437-
{selectedProjects.includes(project) && (
439+
{selectedProjects.some(
440+
(p) => p.projectId === project.projectId
441+
) && (
438442
<div className="absolute inset-y-0 left-0 w-0.5 bg-indigo-600" />
439443
)}
440444
<input
441445
type="checkbox"
442446
data-testid="project-checkbox"
443447
className="absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600"
444-
checked={selectedProjects.includes(project)}
448+
checked={selectedProjects.some(
449+
(p) => p.projectId === project.projectId
450+
)}
445451
onChange={(e) => {
446452
setSelectedProjects(
447453
e.target.checked
448454
? [...selectedProjects, project]
449455
: selectedProjects.filter(
450-
(p) =>
451-
p.projectPayoutAddress !==
452-
project.projectPayoutAddress
456+
(p) => p.projectId !== project.projectId
453457
)
454458
);
455459
}}
@@ -458,7 +462,9 @@ export function PayProjectsTable(props: {
458462
<td
459463
className={classNames(
460464
"whitespace-nowrap py-4 pr-3 text-sm font-medium",
461-
selectedProjects.includes(project)
465+
selectedProjects.some(
466+
(p) => p.projectId === project.projectId
467+
)
462468
? "text-indigo-600"
463469
: "text-gray-900"
464470
)}
@@ -534,7 +540,7 @@ export function PayProjectsTable(props: {
534540
title="Warning!"
535541
body={
536542
<div className="text-gray-400 text-sm font-['Libre_Franklin']">
537-
You dont have enough funds in the contract to pay out the selected
543+
You don't have enough funds in the contract to pay out the selected
538544
grantees. Please either add more funds to the contract or select
539545
fewer grantees.
540546
</div>

0 commit comments

Comments
 (0)