From 38730ae8d51b04906d1b343b3f7eba49f5e36767 Mon Sep 17 00:00:00 2001 From: edalex-yinzi Date: Wed, 4 Dec 2024 15:04:40 +1100 Subject: [PATCH] chore: fix typo secret --- .../Integrations/oidc/OidcSettingsHelper.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/react-front-end/tsrc/settings/Integrations/oidc/OidcSettingsHelper.tsx b/react-front-end/tsrc/settings/Integrations/oidc/OidcSettingsHelper.tsx index c7c3351f1a..baf45865ee 100644 --- a/react-front-end/tsrc/settings/Integrations/oidc/OidcSettingsHelper.tsx +++ b/react-front-end/tsrc/settings/Integrations/oidc/OidcSettingsHelper.tsx @@ -309,7 +309,7 @@ const commonApiDetails = ( onChange: (key: string, value: unknown) => void, showValidationErrors: boolean, apiDetails: ApiDetails, - isSecreteConfigured: boolean, + isSecretConfigured: boolean, ): Record => { const { platform, apiUrl, apiClientId } = apiDetails; // apiClientSecret is not exist in OktaApiDetails. @@ -353,7 +353,7 @@ const commonApiDetails = ( desc: apiClientSecretDesc, required: true, // Validation is not required for updating but required for the initial creation. - validate: isSecreteConfigured ? constTrue : isNonEmptyString, + validate: isSecretConfigured ? constTrue : isNonEmptyString, component: passwordTextFiled({ name: apiClientSecretLabel, value: apiClientSecret, @@ -361,9 +361,9 @@ const commonApiDetails = ( required: true, onChange: (value) => onChange("apiClientSecret", value), showValidationErrors, - validate: isSecreteConfigured ? constTrue : isNonEmptyString, + validate: isSecretConfigured ? constTrue : isNonEmptyString, errorMessage: missingValue, - placeholder: isSecreteConfigured ? passwordMask : undefined, + placeholder: isSecretConfigured ? passwordMask : undefined, }), }, }; @@ -393,13 +393,13 @@ export const generatePlatform = ( * @param apiDetails The value of the platform specific details. * @param apiDetailsOnChange Function to be called when a platform specific field is changed. * @param showValidationErrors Whether to show validation errors for each field. - * @param isSecreteConfigured Whether the server already has the API secrete. + * @param isSecretConfigured Whether the server already has the API secrete. */ export const generateApiDetails = ( apiDetails: ApiDetails, apiDetailsOnChange: (key: string, value: unknown) => void, showValidationErrors: boolean, - isSecreteConfigured: boolean, + isSecretConfigured: boolean, ): Record => { const platform = apiDetails.platform; @@ -407,7 +407,7 @@ export const generateApiDetails = ( apiDetailsOnChange, showValidationErrors, apiDetails, - isSecreteConfigured, + isSecretConfigured, ); const { apiUrl, apiClientId, apiClientSecret } = apiCommonFields;