Skip to content

Commit

Permalink
code restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
kurund committed Jan 15, 2025
1 parent 4d4590b commit e1170f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/containers/HSM/HSM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ export const HSM = () => {
};

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

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

// Creating payload for button template
Expand Down

0 comments on commit e1170f8

Please sign in to comment.