diff options
| -rw-r--r-- | app/components/Connect.js | 2 | ||||
| -rw-r--r-- | app/components/CustomScrollbars.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js index 71ddb365f4..9d7f52f7b1 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -344,7 +344,7 @@ export default class Connect extends Component<Props, State> { case 'connected': return 'success'; default: - throw new Error(`Invalid ConnectionState: ${status}`); + throw new Error(`Invalid ConnectionState: ${(status: empty)}`); } } diff --git a/app/components/CustomScrollbars.js b/app/components/CustomScrollbars.js index be74bfddb5..a149faff75 100644 --- a/app/components/CustomScrollbars.js +++ b/app/components/CustomScrollbars.js @@ -176,7 +176,7 @@ export default class CustomScrollbars extends React.Component<Props, State> { return offsetTop - (scrollable.offsetHeight - child.clientHeight) * 0.5; default: - throw new Error(`Unknown enum type for ScrollPosition: ${scrollPosition}`); + throw new Error(`Unknown enum type for ScrollPosition: ${(scrollPosition: empty)}`); } } |
