Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit b256924

Browse files
authored
Merge pull request #259 from paritytech/am-fix-ci-2
Add default case
2 parents 89a5e5c + 0538928 commit b256924

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/fether-react/src/RequireHealthOverlay/RequireHealthOverlay.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function statusMatches (status, require) {
1919
);
2020
case 'sync':
2121
return status === STATUS.GOOD;
22+
default:
23+
throw new Error(`Status '${status}' must be one of 'connected|sync'.`);
2224
}
2325
}
2426

0 commit comments

Comments
 (0)