I am having this problem where my global variable is being updated within the async function containing the fetch query, however when I go to access the global variable outs