79675025

Date: 2025-06-22 09:19:16
Score: 5
Natty:
Report link

But now i have another problem:

const loginUser = async (username: string, password: string) => {
        useLogin(username, password)
            .then((res) => {
                if (res) {
                     // process res
               }
           })
           .catch((/*e*/) => toast.warning("Server error occured"));
     };

Property 'then' does not exist on type 'UseQueryResult<unknown, Error>'. Property 'then' does not exist on type 'QueryObserverRefetchErrorResult<unknown, Error>'.

Can you please tell me what's the problem here ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you please tell me what
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Transporter08