Skip to content

Commit

Permalink
fix: last remaining window destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
simodrws committed May 26, 2023
1 parent fad615f commit 9ec14cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/modal/modal.tsx
Expand Up @@ -4,6 +4,7 @@ import React, { useEffect, useMemo, useState } from 'react';
import { useMasa } from '../../provider';

function getWindowDimensions() {
if (typeof window === 'undefined') return { width: 0, height: 0 };
const { innerWidth: width, innerHeight: height } = window;
return {
width,
Expand Down

0 comments on commit 9ec14cc

Please sign in to comment.