File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/modules/layout/components/country-select Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const CountrySelect = () => {
45
45
< div onMouseEnter = { open } onMouseLeave = { close } >
46
46
< Listbox
47
47
onChange = { handleChange }
48
- value = {
48
+ defaultValue = {
49
49
countryCode
50
50
? options ?. find ( ( o ) => o . country === countryCode )
51
51
: undefined
@@ -81,10 +81,10 @@ const CountrySelect = () => {
81
81
className = "absolute -bottom-[calc(100%-36px)] left-0 xsmall:left-auto xsmall:right-0 max-h-[442px] overflow-y-scroll z-[900] bg-white drop-shadow-md text-small-regular uppercase text-black no-scrollbar"
82
82
static
83
83
>
84
- { options ?. map ( ( o ) => {
84
+ { options ?. map ( ( o , index ) => {
85
85
return (
86
86
< Listbox . Option
87
- key = { o . country }
87
+ key = { index }
88
88
value = { o }
89
89
className = "py-2 hover:bg-gray-200 px-3 cursor-pointer flex items-center gap-x-2"
90
90
>
You can’t perform that action at this time.
0 commit comments