Skip to content

Commit

Permalink
Button - fix TS error (#2931)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-i-k-e-l committed Jan 31, 2024
1 parent c4e0de5 commit c3e25b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Button extends PureComponent<Props, ButtonState> {
this.setState({size});
}

if (Constants.isAndroid && Platform.Version <= 17) {
if (Constants.isAndroid && (Platform.Version as number) <= 17) {
this.setState({borderRadius: height / 2});
}
};
Expand Down

0 comments on commit c3e25b4

Please sign in to comment.