Skip to content

Commit

Permalink
fix: reload app fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Mar 8, 2022
1 parent 85ebe66 commit 8f43e92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/navigation/AppNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Route, Redirect } from 'react-router-dom';
import { IndeterminateProgressOverlay, Dashboard } from '../components/';
import { NotificationContainer } from 'react-notifications';

import { history, reloadCurrentUrlFromStorage } from './';
import { history, reloadApp, reloadCurrentUrlFromStorage } from './';
import { signOut } from '../store/actions/app';

import * as Pages from '../pages';
Expand All @@ -20,7 +20,6 @@ import {
modalTypeEnum,
} from '../components';
import { setPendingError, setNotificationMessage } from '../store/actions/app';
import { getOrganizationData } from '../store/actions/climateWarehouseActions';

const AppNavigator = () => {
const intl = useIntl();
Expand Down Expand Up @@ -58,7 +57,7 @@ const AppNavigator = () => {
informationType="error"
modalType={modalTypeEnum.information}
label="Try Again"
onOk={() => dispatch(getOrganizationData())}
onOk={reloadApp}
title={intl.formatMessage({ id: 'network-error' })}
body={intl.formatMessage({ id: 'there-is-a-connection-error' })}
extraButtonLabel={
Expand Down

0 comments on commit 8f43e92

Please sign in to comment.