This will make it easier to pass this data around, as I created a new property on the userActivities object that gives you all of the data already processed so that all you need to do is render the markup. This was mainly done for the purpose of displaying the representative title, which, due to the poor design of Google Civic's API, requires a lot of fancy footwork to display properly, so it was deemed better to just get the title once and save it to the global state as a string.
This will make it easier to pass this data around, as I created a new property on the userActivities object that gives you all of the data already processed so that all you need to do is render the markup. This was mainly done for the purpose of displaying the representative title, which, due to the poor design of Google Civic's API, requires a lot of fancy footwork to display properly, so it was deemed better to just get the title once and save it to the global state as a string.