Skip to content

Commit

Permalink
fix: Fixing Redirection in Potential Duplicates Cards (#2652)
Browse files Browse the repository at this point in the history
* fixing redirection in potential duplicatse

* fixing tests

* fixing tests

---------

Co-authored-by: Jay Budhadev <[email protected]>
  • Loading branch information
2 people authored and Jay Budhadev committed Dec 19, 2023
1 parent 2add7a3 commit 7de1f47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe('PotentialDuplicatesPage', () => {
});

it('goToTransaction(): should go to transaction', () => {
component.goToTransaction({ etxn: apiExpenses1[0] });
component.goToTransaction({ expense: apiExpenses1[0] });

expect(router.navigate).toHaveBeenCalledOnceWith([
'/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class PotentialDuplicatesPage {
});
}

goToTransaction({ etxn: expense }: { etxn: Expense }): void {
this.router.navigate(['/', 'enterprise', 'add_edit_expense', { id: expense.id, persist_filters: true }]);
goToTransaction(event: { expense: Expense }): void {
this.router.navigate(['/', 'enterprise', 'add_edit_expense', { id: event.expense.id, persist_filters: true }]);
}
}

0 comments on commit 7de1f47

Please sign in to comment.