summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/renderer/components')
-rw-r--r--gui/src/renderer/components/TooManyDevices.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/src/renderer/components/TooManyDevices.tsx b/gui/src/renderer/components/TooManyDevices.tsx
index 7cb67bf040..3823cc6f5d 100644
--- a/gui/src/renderer/components/TooManyDevices.tsx
+++ b/gui/src/renderer/components/TooManyDevices.tsx
@@ -1,4 +1,4 @@
-import { useCallback, useEffect } from 'react';
+import { useCallback } from 'react';
import { sprintf } from 'sprintf-js';
import styled from 'styled-components';
@@ -99,7 +99,7 @@ const StyledRemoveSpinner = styled(ImageView)({
export default function TooManyDevices() {
const history = useHistory();
- const { fetchDevices, removeDevice, login, cancelLogin } = useAppContext();
+ const { removeDevice, login, cancelLogin } = useAppContext();
const accountToken = useSelector((state) => state.account.accountToken)!;
const devices = useSelector((state) => state.account.devices);
@@ -116,8 +116,6 @@ export default function TooManyDevices() {
history.reset(RoutePath.login, transitions.pop);
}, [history.reset, cancelLogin]);
- useEffect(() => void fetchDevices(accountToken), []);
-
const iconSource = getIconSource(devices);
const title = getTitle(devices);
const subtitle = getSubtitle(devices);