diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-12-04 21:37:09 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-12-06 11:48:40 +0100 |
| commit | ed18963b050fa50098dd515bb12914fceb012cea (patch) | |
| tree | d6df9069d816bbf5958a25e04d0b025e6acae5df /app | |
| parent | 7d9097c3d9f36229eac341bd7a932d72fa6a7828 (diff) | |
| download | mullvadvpn-ed18963b050fa50098dd515bb12914fceb012cea.tar.xz mullvadvpn-ed18963b050fa50098dd515bb12914fceb012cea.zip | |
Fix flow crash on dispatch without annotated type
Diffstat (limited to 'app')
| -rw-r--r-- | app/containers/SelectLocationPage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/containers/SelectLocationPage.js b/app/containers/SelectLocationPage.js index 987173856b..c39f76eba7 100644 --- a/app/containers/SelectLocationPage.js +++ b/app/containers/SelectLocationPage.js @@ -6,8 +6,10 @@ import SelectLocation from '../components/SelectLocation'; import RelaySettingsBuilder from '../lib/relay-settings-builder'; import log from 'electron-log'; +import type { ReduxDispatch } from '../redux/store'; + const mapStateToProps = (state) => state; -const mapDispatchToProps = (dispatch, props) => { +const mapDispatchToProps = (dispatch: ReduxDispatch, props) => { const { backend } = props; return { onClose: () => dispatch(push('/connect')), |
