diff --git a/apps/deploy-web/src/components/remote-deploy/RemoteRepositoryDeployManager.tsx b/apps/deploy-web/src/components/remote-deploy/RemoteRepositoryDeployManager.tsx index 75eae49c2..e801b71d0 100644 --- a/apps/deploy-web/src/components/remote-deploy/RemoteRepositoryDeployManager.tsx +++ b/apps/deploy-web/src/components/remote-deploy/RemoteRepositoryDeployManager.tsx @@ -55,7 +55,7 @@ const RemoteRepositoryDeployManager = ({ const envVarUpdater = useMemo(() => new EnvVarUpdater(services), [services]); - const { reLoginWithGithub, loginWithGithub } = new GitHubService(); + const { reLoginWithGithub, loginWithGithub } = useMemo(() => new GitHubService(), []); const { data: userProfile, isLoading: fetchingProfile } = useUserProfile(); const { mutate: fetchAccessToken, isLoading: fetchingToken } = useFetchAccessToken(navigateToNewDeployment);