File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/components/PortfolioNavigator Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -136,14 +136,22 @@ export default function OtcServicesColumns() {
136136 const toggleChip = ( c : Chip ) =>
137137 setChips ( ( prev ) => {
138138 const next = new Set ( prev ) ;
139- next . has ( c ) ? next . delete ( c ) : next . add ( c ) ;
139+ if ( next . has ( c ) ) {
140+ next . delete ( c ) ;
141+ } else {
142+ next . add ( c ) ;
143+ }
140144 return next ;
141145 } ) ;
142146
143147 const toggleRegion = ( r : Region ) =>
144148 setRegionsSel ( ( prev ) => {
145149 const next = new Set ( prev ) ;
146- next . has ( r ) ? next . delete ( r ) : next . add ( r ) ;
150+ if ( next . has ( r ) ) {
151+ next . delete ( r ) ;
152+ } else {
153+ next . add ( r ) ;
154+ }
147155 return next ;
148156 } ) ;
149157
@@ -424,8 +432,8 @@ export default function OtcServicesColumns() {
424432 </ div >
425433
426434 </ div >
427- )
428- }
435+ )
436+ }
429437 </ div >
430438 ) ;
431439}
You can’t perform that action at this time.
0 commit comments