fix: 🐛 fix typings in useOrientation sensor

This commit is contained in:
streamich 2019-02-17 09:14:25 +01:00
parent d89bd54cba
commit afbacace24

View File

@ -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 {