diff --git a/.vscode/settings.json b/.vscode/settings.json index a2f2b1a4..8d45d3ea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,6 +43,16 @@ "Toastify", "uncopied", "undici", - "unrelate" - ] + "unrelate", + "Keypair", + "typesafe", + "Typesafe", + "integ", + "unifiedid", + "envar", + "ssportal", + "DTOs", + "sendgrid" + ], + "cSpell.diagnosticLevel": "Hint" } diff --git a/src/api/controllers/userController.ts b/src/api/controllers/userController.ts index 3fc3c8f2..0fa4fb38 100644 --- a/src/api/controllers/userController.ts +++ b/src/api/controllers/userController.ts @@ -55,7 +55,7 @@ export class UserController { @httpPut('/current/acceptTerms') public async acceptTerms(@request() req: UserRequest, @response() res: Response): Promise { - const doesUserHaveAParticipant = (req.user?.participants?.length ?? 0) >= 1 ?? false; + const doesUserHaveAParticipant = (req.user?.participants?.length ?? 0) >= 1; if (!doesUserHaveAParticipant) { res.status(403).json({ diff --git a/src/web/components/Home/RotateApiKeyCard.stories.tsx b/src/web/components/Home/RotateApiKeyCard.stories.tsx index 6d0fe1bf..37c0e418 100644 --- a/src/web/components/Home/RotateApiKeyCard.stories.tsx +++ b/src/web/components/Home/RotateApiKeyCard.stories.tsx @@ -40,7 +40,7 @@ export const Default: Story = { }, }; -export const MutipleKeysToRotate: Story = { +export const MultipleKeysToRotate: Story = { args: { apiKeysToRotate: [testApiKey1, testApiKey2], }, diff --git a/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx b/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx index b2092691..6fc94986 100644 --- a/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx +++ b/src/web/components/ParticipantManagement/ParticipantManagementItem.tsx @@ -12,19 +12,19 @@ import EditParticipantDialog from './EditParticipantDialog'; import './ParticipantManagementItem.scss'; -type ParticipantManagmentItemProps = Readonly<{ +type ParticipantManagementItemProps = Readonly<{ participant: ParticipantDTO; apiRoles: ApiRoleDTO[]; participantTypes: ParticipantTypeDTO[]; onUpdateParticipant: (form: UpdateParticipantForm, participant: ParticipantDTO) => Promise; }>; -export function ParticipantManagmentItem({ +export function ParticipantManagementItem({ participant, apiRoles, participantTypes, onUpdateParticipant, -}: ParticipantManagmentItemProps) { +}: ParticipantManagementItemProps) { const [showEditParticipantDialog, setShowEditParticipantDialog] = useState(false); const onOpenChangeEditParticipantDialog = () => { diff --git a/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx b/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx index 2c69c562..feeef11b 100644 --- a/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx +++ b/src/web/components/ParticipantManagement/ParticipantManagementTable.tsx @@ -10,7 +10,7 @@ import { PagingTool } from '../Core/Paging/PagingTool'; import { RowsPerPageValues } from '../Core/Paging/PagingToolHelper'; import { SortableTableHeader } from '../Core/Tables/SortableTableHeader'; import { TableNoDataPlaceholder } from '../Core/Tables/TableNoDataPlaceholder'; -import { ParticipantManagmentItem } from './ParticipantManagementItem'; +import { ParticipantManagementItem } from './ParticipantManagementItem'; import './ParticipantManagementTable.scss'; @@ -116,7 +116,7 @@ function ParticipantManagementTableContent({ {pagedRows.map((participant) => ( -