-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
|
if (selected.length === paidClaims.length) { | ||
setSelectedAll(true) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be updated when it's not fully selected as well?
if (selected.length === paidClaims.length) { | |
setSelectedAll(true) | |
} | |
setSelectedAll(selected.length === paidClaims.length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because if you unselect one option it will set selectedAll to false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...which is what we want 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR works as expected, although I see a bit of a mess on the responsbilities of the components as discussed in https://gnosisinc.slack.com/archives/C025G521XQD/p1642676703117800?thread_ts=1642674739.113100&cid=C025G521XQD
Summary
Fixes #2221