This commit is contained in:
Nathan Bierema 2021-10-04 21:56:33 -04:00
parent af24dba5d8
commit 83b6c49a45

View File

@ -195,8 +195,10 @@ function connect() {
socket = socketCluster.create(connection.options); socket = socketCluster.create(connection.options);
handleConnection(); handleConnection();
} catch (error) { } catch (error) {
store.dispatch({ type: actions.CONNECT_ERROR, error }); store.dispatch({ type: actions.CONNECT_ERROR, error: error as Error });
store.dispatch(showNotification(error.message || error)); store.dispatch(
showNotification((error as Error).message || (error as string))
);
} }
} }