Skip to content

Commit

Permalink
FIRECERT-2172-sanity ui bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandana-NNR committed Aug 21, 2024
1 parent 5f2b956 commit 9e8cc76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ValidationView.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ export default class ValidationView extends lng.Component {
// Combine defaultSDKs and additionalSDKs into one array
const allSDKs = [...CONSTANTS.defaultSDKs, ...CONSTANTS.additionalSDKs];
// Find the SDK configuration for the specified sdk mode
const sdkConfig = allSDKs.find((sdk) => sdkMode.includes(sdk.name.toUpperCase()));
const sdkConfigs = allSDKs.filter((sdk) => sdkMode.toUpperCase().includes(sdk.name.toUpperCase()));
const exactMatch = sdkConfigs.find((sdk) => sdkMode.toUpperCase() === sdk.name.toUpperCase());
const sdkConfig = exactMatch || (sdkConfigs.length === 1 && sdkConfigs[0]) || sdkConfigs;
// If SDK config found and validation method exists
if (sdkConfig && sdkConfig.validation) {
if (!sdkConfig.validation()) {
Expand Down

0 comments on commit 9e8cc76

Please sign in to comment.