Skip to content

Commit

Permalink
fix: express undefined visible field on reearth/core (#461)
Browse files Browse the repository at this point in the history
Co-authored-by: KaWaite <34051327+KaWaite@users.noreply.github.com>
  • Loading branch information
keiya01 and KaWaite committed Feb 15, 2023
1 parent c41d703 commit c74630b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Crust/Widgets/Widget/useVisible.ts
Expand Up @@ -15,6 +15,7 @@ export const useVisible = ({
}) => {
const visible = useMemo(
() =>
!defaultVisible ||
defaultVisible === "always" ||
(defaultVisible === "desktop" && !isMobile) ||
(defaultVisible === "mobile" && !!isMobile),
Expand Down

0 comments on commit c74630b

Please sign in to comment.