Stricter compilation rules, better linting
This commit is contained in:
@ -52,7 +52,9 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) {
|
||||
}, [input, existingSpaces])
|
||||
|
||||
const handleShare = async () => {
|
||||
if (!space) return
|
||||
if (!space) {
|
||||
return
|
||||
}
|
||||
|
||||
const shareLink = generateShareLink(space)
|
||||
const success = await copyToClipboard(shareLink)
|
||||
@ -109,7 +111,9 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) {
|
||||
onClose()
|
||||
}
|
||||
|
||||
if (!isOpen) return null
|
||||
if (!isOpen) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user