diff --git a/src/react/reducers/networkActivity.ts b/src/react/reducers/networkActivity.ts
index efa78f8df..721a4b0c6 100644
--- a/src/react/reducers/networkActivity.ts
+++ b/src/react/reducers/networkActivity.ts
@@ -17,7 +17,7 @@ export default function networkActivity(
return {
...state,
counter: Math.max(state.counter - 1, 0),
- messages: state.messages.shift(),
+ messages: state.messages?.shift(),
};
case 'NETWORK_AUTH_FAILURE':
diff --git a/src/react/ui-elements/__tests__/ReauthDialog.test.tsx b/src/react/ui-elements/__tests__/ReauthDialog.test.tsx
index bab52f800..0d6e63301 100644
--- a/src/react/ui-elements/__tests__/ReauthDialog.test.tsx
+++ b/src/react/ui-elements/__tests__/ReauthDialog.test.tsx
@@ -19,7 +19,7 @@ describe('class ', () => {
});
expect(screen.queryByText(modalTitle)).not.toBeInTheDocument();
});
- it.only('should not render the ReauthDialog component if the network activity authFailure is false even if error is of type byAuth', () => {
+ it('should not render the ReauthDialog component if the network activity authFailure is false even if error is of type byAuth', () => {
renderWithRouterMatch(, undefined, {
networkActivity: {
authFailure: false,
@@ -86,6 +86,7 @@ describe('class ', () => {
},
},
});
+
expect(screen.getByText(modalTitle)).toBeInTheDocument();
expect(screen.getByText(defaultMessage)).toBeInTheDocument();
});