mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
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 KeyGenerationHeader = () => {
|
||||||
const windowSize = useWindowSize()
|
const windowSize = useWindowSize()
|
||||||
|
|
||||||
|
if (windowSize.width <= 0) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles['header']}>
|
<div className={styles['header']}>
|
||||||
<KeyGenerationTitle />
|
<KeyGenerationTitle />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user