Skip to content

Commit

Permalink
fix: watch, not read
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Oct 16, 2023
1 parent b53fa93 commit e18f94d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GpaPage extends HookConsumerWidget {
for (var hour = 0; hour < hours.value; hour++)
LetterGradeDropdown(
hour: hour,
grade: ref.read(gpaServiceProvider(hour)).grade,
grade: ref.watch(gpaServiceProvider(hour)).grade,
updateGrade: (grade) => ref
.read(gpaServiceProvider(hour).notifier)
.updateGrade(grade ?? defaultLetterGrade),
Expand Down

0 comments on commit e18f94d

Please sign in to comment.