fix: add check for window size zero for sync cards

This commit is contained in:
RadoslavDimchev 2024-01-26 10:14:29 +02:00 committed by Radoslav Dimchev
parent c800721e78
commit bafa31b1f9
1 changed files with 4 additions and 0 deletions

View File

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