Skip to content

Commit

Permalink
use const
Browse files Browse the repository at this point in the history
  • Loading branch information
prtcl committed Jan 3, 2025
1 parent f68b5be commit 4792683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type Orientation = 'landscape' | 'portrait';
export const useOrientation = () => {
const isLandscape = useMedia('(orientation: landscape)');
const isPortrait = useMedia('(orientation: portrait)');
let orientation: Orientation = isPortrait ? 'portrait' : 'landscape';
const orientation: Orientation = isPortrait ? 'portrait' : 'landscape';

return {
isLandscape,
Expand Down

0 comments on commit 4792683

Please sign in to comment.