User object in Reactjs causes infinite loop in useEffect()

I am trying to send the user object to my backend once it becomes available in the useEffect() by putting it as a dependency, but it causes an infinite loop. If I just log the user object in the useEffect it doesn’t loop, but if I put the sendLoggedInUser function in the useEffect() it causes the infinite loop.

 // send user data to a test endpoint in the backend (WORKS)
  async function sendLoggedInUser(info) {
    
    try {
    
      const url = `${process.env.REACT_APP_SAVE_USER}`;
      const axiosConfig = {
        method: 'post',
        url,
        data: info
      };

    await  axios(axiosConfig).catch((e) => {console.log(e)});
    console.log('[sendLoggedInUser]: LoggedInUser sent to server');
    return;
    } catch (error) {
      
      console.log('[sendLoggedInUser]: An Error has Occured', error);
      return;
    }
  };

  async function sendPaidInvoiceUser(current) {
    
    try {
    
      const url = `${process.env.REACT_APP_SEND_PAID_INVOICE_USER}`;
      const axiosConfig = {
        method: 'post',
        url,
        data: current
      };

    await  axios(axiosConfig).catch((e) => {console.log(e)});
    console.log('[sendPaidInvoiceUser]: paid Invoice User sent to server');
    return;
    } catch (error) {
      
      console.log('[sendPaidInvoiceUser]: An Error has Occured', error);
      return;
    }
  };

   useEffect(() => {
    
    sendLoggedInUser(loggedInUser);
       sendPaidInvoiceUser(paidInvoiceUser);
   console.log(user); // doesnt cause infinite loop

  }, [user])