Skip to content

Commit

Permalink
Merge pull request #3189 from glific/fix/hsm-language
Browse files Browse the repository at this point in the history
HSM: Fixed Language dropdown #3188
  • Loading branch information
kurund authored Jan 15, 2025
2 parents 4976ab5 + e1170f8 commit 19feedc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/containers/HSM/HSM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,12 @@ export const HSM = () => {
};

const getLanguageId = (value: any) => {
let result: any;
const selected = languageOptions.find((option: any) => option.label === value);
result = selected;
if (!value.label) {
return;
}

if (result) setLanguageId(result);
const selected = languageOptions.find((option: any) => option.label === value.label);
setLanguageId(selected);
};

// Creating payload for button template
Expand Down

0 comments on commit 19feedc

Please sign in to comment.