Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Budhadev authored and Jay Budhadev committed Nov 24, 2023
1 parent c744a9c commit b3b9866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/fyle/merge-expense/merge-expense.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class MergeExpensePage implements OnInit, AfterViewChecked {
custom_inputs: [],
});

this.txnIDs = JSON.parse(this.activatedRoute.snapshot.params.txnIDs as string) as string[];
this.txnIDs = JSON.parse(this.activatedRoute.snapshot.params.expenseIDs as string) as string[];

const expenses$ = this.transcationService
.getETxnc({
Expand Down
4 changes: 2 additions & 2 deletions src/app/fyle/my-expenses/my-expenses.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1547,13 +1547,13 @@ export class MyExpensesPage implements OnInit {
}

mergeExpenses(): void {
const txnIDs = this.selectedElements.map((expense) => expense.id);
const expenseIDs = this.selectedElements.map((expense) => expense.id);
this.router.navigate([
'/',
'enterprise',
'merge_expense',
{
txnIDs: JSON.stringify(txnIDs),
selectedExpenseIDs: JSON.stringify(expenseIDs),
from: 'MY_EXPENSES',
},
]);
Expand Down

0 comments on commit b3b9866

Please sign in to comment.