Skip to content

Commit

Permalink
fix: error when not running on Mac due to an undefined os variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rhumbertgz committed Sep 27, 2024
1 parent 1d72a58 commit f98ac5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ui/src/layout/MainLayout/ViewHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import { IconSearch, IconArrowLeft, IconEdit } from '@tabler/icons-react'
import useSearchShorcut from '@/hooks/useSearchShortcut'
import { getOS } from '@/utils/genericHelper'

const isMac = getOS() === 'macos'
export const isDesktop = isMac || os === 'windows' || os === 'linux'
const os = getOS()
const isMac = os === 'macos'
const isDesktop = isMac || os === 'windows' || os === 'linux'
const keyboardShortcut = isMac ? '[ ⌘ + F ]' : '[ Ctrl + F ]'

const ViewHeader = ({
Expand Down

0 comments on commit f98ac5f

Please sign in to comment.