useState and redirection losing value - Nuxt