Add switch-default tslint rule and add missing default statement

This commit is contained in:
Fabio Berger
2018-06-05 12:19:28 +02:00
parent 57b65726d6
commit cc6338d048
2 changed files with 4 additions and 0 deletions

View File

@@ -349,6 +349,9 @@ export class Landing extends React.Component<LandingProps, LandingState> {
case ScreenWidths.Lg:
colWidth = isRelayersOnly ? 2 : 2 - i % 2;
break;
default:
throw new Error(`Encountered unknown ScreenWidths value: ${this.state.screenWidth}`);
}
return (
<div key={`project-${project.logoFileName}`} className={`col col-${colWidth} center`}>