79237485

Date: 2024-11-29 14:51:13
Score: 0.5
Natty:
Report link

Try adding an await keyword before the first method(the method that generates the cookie)

try {
    // Wait for method1 to finish
    await method1();
    // Then run method2
    await method2();
} catch (error) {
    console.error("An error occurred:", error);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amenawon Esezobor