diff --git a/.vscode/settings.json b/.vscode/settings.json index 04db5bc0f13..30fabc7dcba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,10 @@ }, "cSpell.words": [ "Dismissable", + "getinsomnia", "inso", + "libcurl", + "svgr", "xmark" ], } diff --git a/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx b/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx index debc52ac842..11a9a921ca7 100644 --- a/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx +++ b/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx @@ -266,7 +266,7 @@ export const InviteModalContainer: FC<{ const [currentUserAccountId, setCurrentUserAccountId] = useState(''); const [currentOrgInfo, setCurrentOrgInfo] = useState(null); - const isCurrentUserOrganizationOwner = currentUserAccountId === currentOrgInfo?.metadata.ownerAccountId; + const isCurrentUserOrganizationOwner = currentUserAccountId === currentOrgInfo?.metadata?.ownerAccountId; function getBaseInfo(organizationId: string) { return Promise.all([