[ad_1]
I have the following code sequence where some calendar data is checked with scheduling data.
The problem is that if there are 2 or more appointments, I get the rest duplicated, tripled. How can I change?
{ programari.map(val=>{
if(val.date==selectedDate ){
if(val.hour==hour){
[enter image description here][1]return(
<RadioButton.Item label={hour} value={hour} disabled={true} style={{backgroundColor:'red',opacity:0.4}} />
)
}
else return <RadioButton.Item label={hour} value={hour} disabled={false} style={{backgroundColor:'green',opacity:0.4}} />
}
})}
[ad_2]