Skip to content

Commit 5e55413

Browse files
committed
Fixed testId and removed unused variable
1 parent 3dc4552 commit 5e55413

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/sectionsWheelPicker/SectionsWheelPicker.driver.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import {SectionsWheelPickerProps} from './index';
77
export const SectionsWheelPickerDriver = (props: ComponentProps) => {
88
const driver = useComponentDriver<SectionsWheelPickerProps>(props);
99

10-
const sectionsDrivers = React.Children.toArray(driver.getElement().props.children).map((_section, index) => {
11-
if (typeof _section === 'object' && 'props' in _section) {
10+
const sectionsDrivers = React.Children.toArray(driver.getElement().props.children).map((section) => {
11+
if (typeof section === 'object' && 'props' in section) {
1212
return WheelPickerDriver({
1313
renderTree: props.renderTree,
14-
testID: `${props.testID}.${index}`
14+
testID: section.props.testID
1515
});
1616
}
1717
return undefined;

0 commit comments

Comments
 (0)