Skip to content

Commit

Permalink
Replace to pillSheetEnumTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
bannzai committed Mar 10, 2022
1 parent 9d2852e commit 1e24d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/domain/record/record_page_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class RecordPageStore extends StateNotifier<RecordPageState> {
}

removePillSheetType(int index, Setting setting) {
final copied = [...setting.pillSheetTypes];
final copied = [...setting.pillSheetEnumTypes];
copied.removeAt(index);

final updatedSetting = setting.copyWith(pillSheetTypes: copied);
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/settings/components/rows/menstruation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MenstruationRow extends HookConsumerWidget {
}

bool get _hasError {
if (setting.pillSheetTypes.isEmpty) {
if (setting.pillSheetEnumTypes.isEmpty) {
return false;
}

Expand Down

0 comments on commit 1e24d97

Please sign in to comment.