summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2017-12-04 21:37:09 +0100
committerAndrej Mihajlov <and@mullvad.net>2017-12-06 11:48:40 +0100
commited18963b050fa50098dd515bb12914fceb012cea (patch)
treed6df9069d816bbf5958a25e04d0b025e6acae5df
parent7d9097c3d9f36229eac341bd7a932d72fa6a7828 (diff)
downloadmullvadvpn-ed18963b050fa50098dd515bb12914fceb012cea.tar.xz
mullvadvpn-ed18963b050fa50098dd515bb12914fceb012cea.zip
Fix flow crash on dispatch without annotated type
-rw-r--r--app/containers/SelectLocationPage.js4
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')),