You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this may be a flaw in the feature as realistically, there may be persons with the same name stored in your address book.
One suggestion I have is to review the definition of Person equality in your code. Perhaps, you may want to redefine the equals function in your app to allow for multiple people of the same name, as long as they differ in some other fields.
The text was updated successfully, but these errors were encountered:
Firstly, I added a new person with this command:
add p n/Sam p/123 e/[email protected] a/Sam Street
This appears in the address book, which is intended behaviour:
Next, I tried to add another person with name "Sam" but with different phone number, email, and address. For example, I did this:
add p n/Sam p/12345 e/[email protected] a/Sam Lane
This person could not be added.
I believe this may be a flaw in the feature as realistically, there may be persons with the same name stored in your address book.
One suggestion I have is to review the definition of
Person
equality in your code. Perhaps, you may want to redefine theequals
function in your app to allow for multiple people of the same name, as long as they differ in some other fields.The text was updated successfully, but these errors were encountered: