Skip to content

Commit

Permalink
fix: when started perks list empty
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 21, 2024
1 parent 8023451 commit 5bdcd92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evently/lib/evently_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class EventlyProvider extends ChangeNotifier {
}

/// perks screen
final List<PerksModel> _perks = [];
List<PerksModel> _perks = [];
int _selectedPerk = 0;

List<PerksModel> get perks => _perks;
Expand Down Expand Up @@ -359,6 +359,8 @@ class EventlyProvider extends ChangeNotifier {
_price = 0;
_cookbookId = '';

_perks = [];

notifyListeners();
}

Expand Down

0 comments on commit 5bdcd92

Please sign in to comment.