yes i was when i add the code it is after i have logged in and authenticated, but i dont get a chance to even attempt to swap it throws an error on refresh not button click.
should i be saving authentication to state or something?
edit: isnt authentication saved automatically after login throughout the project?