Skip to content

Commit 8deaa9d

Browse files
author
Brendan Mulholland
committed
Replace route that missed it in conversion
1 parent 86509aa commit 8deaa9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/Settings.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ describe('routes/Settings.tsx', () => {
180180
</AppContext.Provider>,
181181
);
182182
fireEvent.click(getByLabelText('Login with GitHub Enterprise'));
183-
expect(mockNavigate).toHaveBeenNthCalledWith(1, '/login-enterprise');
183+
expect(mockNavigate).toHaveBeenNthCalledWith(1, '/login-enterprise', { replace: true });
184184
});
185185

186186
it('should quit the app', () => {

src/routes/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const SettingsRoute: React.FC = () => {
3636
}, []);
3737

3838
const goToEnterprise = useCallback(() => {
39-
return navigate('/login-enterprise');
39+
return navigate('/login-enterprise', { replace: true });
4040
}, []);
4141

4242
const footerButtonClass =

0 commit comments

Comments
 (0)