Documentation on state endpoint out-dated

Here’s a PR to address the outdated variable name: