The function that’s causing me issues is this:
function finalLetter() {
let letter = {
recipient: characters[state.writing],
}
letter = Object.assign(letter, deepCopy(state.writing_content))
return letter
}
(where deepCopy(Object) and other variables are defined earlier in the program and confirmed to be working correctly)
It seems like it’s not actually returning anything, and when I do console.log(finalLetter) in the Firefox console, I see the function information with “Arguments” and “Caller”, but no “Return:” or anything similar.
What am I doing wrong?