We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5524dfb commit 6318959Copy full SHA for 6318959
src/utils/useSelectedItem.js
@@ -9,7 +9,7 @@ export function useSelectedItem(defaultIndex, collectionSize) {
9
},
10
select(index) {
11
if (index >= collectionSize) {
12
- throw new Error('Invalid tab');
+ throw new Error('Invalid selected item');
13
}
14
15
setSelectedItem(index);
0 commit comments