Skip to content

Commit

Permalink
fix: countries selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Aug 1, 2024
1 parent 3a9450a commit a5c99ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const PreferredCountriesFooter = ({ isDisabled, onClickApply, onClickClear }: TP
return (
<div className='flex gap-[0.8rem] w-full'>
<Button
className='border-2'
color='black'
disabled={isDisabled}
isFullWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const PreferredCountriesSelector = ({ countryList, type }: TPreferredCountriesSe
setValue('preferred-countries', selectedValues);
setIsModalOpen(false);
}}
onRequestClose={() => setIsModalOpen(false)}
onRequestClose={() => {
setSelectedValues(getValues('preferred-countries'));
setIsModalOpen(false);
}}
selectedCountries={selectedValues}
setSelectedCountries={setSelectedValues}
/>
Expand Down

0 comments on commit a5c99ed

Please sign in to comment.