useEffect and useMutation error about conditional rendering of hooks - tRPC