Skip to content
Snippets Groups Projects
Commit 81d89db6 authored by Laczkó Csongor Loránd's avatar Laczkó Csongor Loránd
Browse files

fix(Register.vue): add missing await for async function call

parent e604a961
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ export default {
// If registration is successful, redirect to login page
if (response.status === 201) {
store.commit('setRegistrationSuccess', true);
router.push('/login');
await router.push('/login');
}
} catch (error) {
// Handle error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment