v1.27.1 error fixes
This commit is contained in:
@@ -220,7 +220,12 @@ class ExerciseNewBloc extends Bloc<ExerciseNewEvent, ExerciseNewState> with Logg
|
||||
|
||||
double getBMR() {
|
||||
var date = DateTime.now();
|
||||
if (weight == null || height == null || height == 0 || weight == 0) {
|
||||
if (weight == null ||
|
||||
height == null ||
|
||||
height == 0 ||
|
||||
weight == 0 ||
|
||||
customerRepository.customer == null ||
|
||||
customerRepository.customer!.birthYear == null) {
|
||||
this.bmi = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user