array.prototype.map() expects a value to be returned at the end of arrow function simge if statement code example
Example: Array.prototype.map() expects a return value from arrow function array-callback-return
Use forEach() instead of map()
Use forEach() instead of map()