79527699

Date: 2025-03-22 16:05:52
Score: 1
Natty:
Report link

Your current implementation has a few issues:

Syntax Error in map: The function inside .map() is not correctly structured. You need to use {} for a block and return the result explicitly.

Incorrectly Accessing certImage: The certImage property is already part of each object, so you don’t need to wrap it inside {} like const image = {objectArray.certImage};. Instead, just use const image = objectArray.certImage;.

Handling await in .map(): Since you're using await inside .map(), you should use Promise.all() to handle asynchronous operations properly.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ijlal atif