Await not working in Freshchat data method

Hi guys!

When I try to fetch user data using the data method in Freshchat using promise ( .then and .catch) it returns values as expected.

image

However, if I use await to make it synchronous the data is returned as expected and it doesn’t even throw an error.

image

Can anyone look into it?

Thank you