Skip to content

Commit

Permalink
(fix) address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Achintha Isuru committed Nov 30, 2023
1 parent 0768eeb commit 32246b1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ export const AdvancedConfigurationsForm: FunctionComponent<AdvancedConfiguration
if (!values.androidPackageName?.toString().trim()
&& values.androidAttestationServiceCredentials?.toString().trim()) {

errors.androidPackageName =
"Android application package name is required to enable client attestation for Android";
errors.androidPackageName = t("console:develop.features.applications.forms.advancedConfig." +
"sections.applicationNativeAuthentication.fields." +
"android.fields.androidPackageName.validations.empty");
} else if (values.androidPackageName?.toString().trim()
&& !values.androidAttestationServiceCredentials?.toString().trim()) {

errors.androidAttestationServiceCredentials =
"Google service account credentials are required to enable client attestation for Android";
errors.androidAttestationServiceCredentials = t("console:develop.features.applications.forms." +
"advancedConfig.sections.applicationNativeAuthentication.fields." +
"android.fields.androidAttestationServiceCredentials.validations.empty");
}

return errors;
Expand Down

0 comments on commit 32246b1

Please sign in to comment.