File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
javascript/grid-ui/src/util Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import safariTechnologyPreviewLogo
9
9
import unknownBrowserLogo from '../assets/browsers/unknown.svg'
10
10
11
11
const browserLogo = ( browser : string ) : string => {
12
+ if ( ! browser ) {
13
+ return unknownBrowserLogo
14
+ }
15
+
12
16
switch ( browser . toLowerCase ( ) ) {
13
17
case 'chrome' :
14
18
return chromeLogo
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import linuxLogo from '../assets/operating-systems/linux.svg'
4
4
import unknownOsLogo from '../assets/operating-systems/unknown.svg'
5
5
6
6
const osLogo = ( os : string ) : string => {
7
+ if ( ! os ) {
8
+ return unknownOsLogo
9
+ }
10
+
7
11
const osLowerCase : string = os . toLowerCase ( )
8
12
if ( osLowerCase . includes ( 'win' ) ) {
9
13
return windowsLogo
You can’t perform that action at this time.
0 commit comments