Skip to content

Commit

Permalink
only set payee in state on page navigation if payee id is present
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Bakholdin committed Feb 26, 2025
1 parent 8a7d58c commit 49e7eab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export function TransactionList({

const onManagePayees = useCallback(
id => {
navigate('/payees', { state: { selectedPayee: id } });
navigate('/payees', id && { state: { selectedPayee: id } });
},
[navigate],
);
Expand Down

0 comments on commit 49e7eab

Please sign in to comment.