|
|
|
|
@ -641,8 +641,8 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
_appState.addUserSwitchPayload(activation.list!.first.toJson(), isSuperUser: true);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
_appState.setSuperUserID = _appState.getAuthenticatedUser()?.patientId;
|
|
|
|
|
// _appState.setIsChildLoggedIn = false;
|
|
|
|
|
var allUsersPayload = _appState.getUserSwitchPayloads;
|
|
|
|
|
_appState.setSuperUserID = allUsersPayload['superUser']?['PatientID'];
|
|
|
|
|
activation.list!.first.isParentUser = true;
|
|
|
|
|
_appState.addUserSwitchPayload(activation.list!.first.toJson(), isSuperUser: true);
|
|
|
|
|
}
|
|
|
|
|
|