Skip to content

Commit

Permalink
fix: close the dropdown for same contract selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Aug 9, 2024
1 parent dd87956 commit fa29ed3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export const ContractDropdown = () => {
const closeDropdownTimer = useRef();

const onContractClick = (formName) => {
if (formName === data?.formName) { return; }
if (formName === data?.formName) {
close();
return;
}

const contractElement = data?.contractElement;

Expand Down

0 comments on commit fa29ed3

Please sign in to comment.