mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
fix incorrect checkbox state logic in extension selector (#7387)
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
This commit is contained in:
@@ -424,9 +424,9 @@ export const AddExtensionSelector = ({
|
||||
const totalCount = categoryExtensions.length;
|
||||
const selectedCount = countSelectedInCategory(categoryId);
|
||||
|
||||
if (selectedCount === 0) return 'checked';
|
||||
if (selectedCount === totalCount) return 'indeterminate';
|
||||
return 'indeterminate';
|
||||
if (selectedCount === 0) return 'unchecked';
|
||||
if (selectedCount === totalCount) return 'checked';
|
||||
return 'indeterminate';
|
||||
};
|
||||
|
||||
// Update the useEffect to use the new hasMatchingExtensions
|
||||
|
||||
Reference in New Issue
Block a user