Skip to content

Commit

Permalink
fix: πŸ› fix typings in useOrientation sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 17, 2019
1 parent d89bd54 commit afbacac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useOrientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const useOrientation = (initialState: OrientationState = defaultState) => {
setState({angle, type});
} else if (window.orientation) {
setState({
angle: window.orientation,
angle: typeof window.orientation === 'number' ? window.orientation : 0,
type: ''
});
} else {
Expand Down

0 comments on commit afbacac

Please sign in to comment.