Jm-Paunlagui / Matrix-Lab-Client

async function should have await expression JS-0116
Bug risk
Minor
a year agoa year old
Found async function without any await expressions
327      .post("/user/verify-email", {
328        email: recovery_email,
329      })
330      .then(async (response) => {331        toast.success(response.data.message);332        setProfile({333          ...profile,334          okforSecurityInfo2: false,335        });336      })337      .catch((error) => {
338        toast.error(error.response.data.message);
339        setProfile({
Found async function without any await expressions
301      .post("/user/verify-email", {
302        email,
303      })
304      .then(async (response) => {305        toast.success(response.data.message);306        setProfile({307          ...profile,308          okforPersonalInfo2: false,309        });310      })311      .catch((error) => {
312        toast.error(error.response.data.message);
313        setProfile({
Found async function without any await expressions
303      .post("/user/verify-email", {
304        email,
305      })
306      .then(async (response) => {307        toast.success(response.data.message);308        setProfile({309          ...profile,310          okforPersonalInfo2: false,311        });312      })313      .catch((error) => {
314        toast.error(error.response.data.message);
315        setProfile({
Found async function without any await expressions
329      .post("/user/verify-email", {
330        email: recovery_email,
331      })
332      .then(async (response) => {333        toast.success(response.data.message);334        setProfile({335          ...profile,336          okforSecurityInfo2: false,337        });338      })339      .catch((error) => {
340        toast.error(error.response.data.message);
341        setProfile({