i am wondering why the code below logs undefined to the console? i have already eliminated a backend issue because when i use the broswers developer tools to inspect this re