Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 94b6733

Browse files
fix: added check for tests
1 parent a748778 commit 94b6733

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/renderer/components/Layout/TitlebarButtonsMac.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import TitlebarButton from './TitlebarButton';
44
import CodigaLogo from './CodigaIcon.png';
55

66
export default function TitlebarActionsMac() {
7-
if (!window.electron.isMac) {
7+
if (!window.electron?.isMac) {
88
return <Image src={CodigaLogo} h="24px" ml="space_16" />;
99
}
1010

src/renderer/components/Layout/TitlebarButtonsWin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const buttonStyles = {
1111
};
1212

1313
export default function TitlebarActionsWin() {
14-
if (window.electron.isMac) return null;
14+
if (window.electron?.isMac) return null;
1515

1616
return (
1717
<Flex>

0 commit comments

Comments
 (0)