Skip to content

Commit

Permalink
Merge pull request #182 from ia-toki/fix/register-update-profile
Browse files Browse the repository at this point in the history
[HOTFIX] register page update profile
  • Loading branch information
gmochid authored Apr 23, 2024
2 parents fd960fd + a5a5c5e commit bfc2480
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/lib/services/router_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,15 @@ GoRouter router = GoRouter(
GoRoute(
path: '/register',
builder: (context, state) {
if (dotenv.env['APP_VERSION'] == 'V1') {
if (state.queryParameters['isUpdateProfile'] == 'true') {
return RegisterPage(
isUpdateProfile: state.queryParameters['isUpdateProfile'],
);
} else if (dotenv.env['APP_VERSION'] == 'V2') {
// return RegisterPageV2(
// isUpdateProfile: state.queryParameters['isUpdateProfile'],
// );
} else {
return RegisterPageV2(
isUpdateProfile: state.queryParameters['isUpdateProfile'],
);
}
return RegisterPage(
isUpdateProfile: state.queryParameters['isUpdateProfile'],
);
}),
GoRoute(
path: '/main',
Expand Down

0 comments on commit bfc2480

Please sign in to comment.