about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-03-19 15:29:25 +0000
committerSamuel Newman <mozzius@protonmail.com>2024-03-19 15:29:25 +0000
commit49a392bfb34b91ba971f32cb25e41b0491c45fc2 (patch)
treefdfeef3b349e011553bad4f509236c7bab69adb3 /src
parent08d12d9a3df1fa062ecc4c67a0a2f686eba4c7c3 (diff)
downloadvoidsky-49a392bfb34b91ba971f32cb25e41b0491c45fc2.tar.zst
rm useless function wrap
Diffstat (limited to 'src')
-rw-r--r--src/screens/Login/index.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screens/Login/index.tsx b/src/screens/Login/index.tsx
index da392569a..8dee06185 100644
--- a/src/screens/Login/index.tsx
+++ b/src/screens/Login/index.tsx
@@ -85,7 +85,6 @@ export const Login = ({onPressBack}: {onPressBack: () => void}) => {
     }
   }, [serviceError, serviceUrl, _])
 
-  const onPressRetryConnect = () => refetchService()
   const onPressForgotPassword = () => {
     track('Signin:PressedForgotPassword')
     setCurrentForm(Forms.ForgotPassword)
@@ -109,7 +108,7 @@ export const Login = ({onPressBack}: {onPressBack: () => void}) => {
           setServiceUrl={setServiceUrl}
           onPressBack={onPressBack}
           onPressForgotPassword={onPressForgotPassword}
-          onPressRetryConnect={onPressRetryConnect}
+          onPressRetryConnect={refetchService}
         />
       )
       break