Skip to content

Commit 6d758e6

Browse files
author
Rishabh
committed
adding check if onIcontap is present in props
1 parent dc88b14 commit 6d758e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rating/components/IconBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const IconBar = ({
3030
activeOpacity={1}
3131
onPress={() => {
3232
if (!readonly) {
33-
onIconTap(position + 1);
33+
onIconTap && onIconTap(position + 1);
3434
}
3535
}}
3636
>

0 commit comments

Comments
 (0)