File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
exercises/static/exercises/rescue_people/react-components Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ function WebGUI() {
2424 let image ;
2525 if ( update . image_right ) {
2626 image = JSON . parse ( update . image_right ) ;
27- setLeftImage ( `data:image/png;base64,${ image . image_right } ` ) ;
27+ if ( image . image_right != "" && image . shape_right instanceof Array ) {
28+ setRightImage ( `data:image/png;base64,${ image . image_right } ` ) ;
29+ }
2830 }
2931 if ( update . image_left ) {
3032 image = JSON . parse ( update . image_left ) ;
31- setRightImage ( `data:image/png;base64,${ image . image_left } ` ) ;
33+ if ( image . image_left != "" && image . shape_left instanceof Array ) {
34+ setLeftImage ( `data:image/png;base64,${ image . image_left } ` ) ;
35+ }
3236 }
3337
3438 manager . send ( "gui" , "ack" ) ;
You can’t perform that action at this time.
0 commit comments