Skip to content
Snippets Groups Projects
Unverified Commit 5784e02c authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Allow creating a payee with a name matching an existing account (#593)

parent 7f7a9afc
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,10 @@ export default function PayeeAutocomplete({
filtered.filtered = isf;
if (filtered.length >= 2 && filtered[0].id === 'new') {
if (filtered[1].name.toLowerCase() === value.toLowerCase()) {
if (
filtered[1].name.toLowerCase() === value.toLowerCase() &&
!filtered[1].transfer_acct
) {
return filtered.slice(1);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment