File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1035,7 +1035,7 @@ export class EventsDisplay extends LitElement implements Layer {
1035
1035
? this . renderButton ( {
1036
1036
content : this . getEventDescription ( event ) ,
1037
1037
onClick : ( ) => {
1038
- event . focusID &&
1038
+ if ( event . focusID )
1039
1039
this . emitGoToPlayerEvent ( event . focusID ) ;
1040
1040
} ,
1041
1041
className : "text-left" ,
@@ -1044,7 +1044,7 @@ export class EventsDisplay extends LitElement implements Layer {
1044
1044
? this . renderButton ( {
1045
1045
content : this . getEventDescription ( event ) ,
1046
1046
onClick : ( ) => {
1047
- event . unitView &&
1047
+ if ( event . unitView )
1048
1048
this . emitGoToUnitEvent (
1049
1049
event . unitView ,
1050
1050
) ;
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export class RailroadExecution implements Execution {
164
164
}
165
165
166
166
private redrawBuildings ( ) {
167
- this . railRoad . from . unit . isActive ( ) && this . railRoad . from . unit . touch ( ) ;
168
- this . railRoad . to . unit . isActive ( ) && this . railRoad . to . unit . touch ( ) ;
167
+ if ( this . railRoad . from . unit . isActive ( ) ) this . railRoad . from . unit . touch ( ) ;
168
+ if ( this . railRoad . to . unit . isActive ( ) ) this . railRoad . to . unit . touch ( ) ;
169
169
}
170
170
}
You can’t perform that action at this time.
0 commit comments