Skip to content

Commit

Permalink
change let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjul3s committed Dec 21, 2020
1 parent fc97955 commit 2483ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/media/src/useWindowSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type WindowSize = {
};

export function useWindowSize() {
let [windowSize, setWindowSize] = useState<WindowSize>(getSize());
const [windowSize, setWindowSize] = useState<WindowSize>(getSize());

function getSize() {
if (typeof window !== 'undefined') {
Expand Down

0 comments on commit 2483ba7

Please sign in to comment.