fix: add check for window size zero for sync cards
This commit is contained in:
parent
c800721e78
commit
bafa31b1f9
|
@ -6,6 +6,10 @@ import styles from '../index.module.css'
|
|||
const KeyGenerationHeader = () => {
|
||||
const windowSize = useWindowSize()
|
||||
|
||||
if (windowSize.width <= 0) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles['header']}>
|
||||
<KeyGenerationTitle />
|
||||
|
|
Loading…
Reference in New Issue