Skip to content

Commit

Permalink
Fix addpa to check all pas, not only those currently displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
chongtzezhao committed Nov 10, 2024
1 parent 7604f05 commit 3b216b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public CommandResult execute(Model model) throws CommandException {
.orElseThrow(() -> new CommandException("Public Address to add is missing"))
.getPublicAddressString();

List<String> allPAs = model.getFilteredPersonList().stream()
List<String> allPAs = model.getAddressBook().getPersonList().stream()
.flatMap(person -> person.getPublicAddressesComposition().getAllPublicAddresses().stream())
.map(PublicAddress::getPublicAddressString)
.toList();
Expand Down

0 comments on commit 3b216b9

Please sign in to comment.