Skip to content

Commit

Permalink
fix: transaction simulation order
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders authored and chambaz committed Oct 14, 2024
1 parent ac9f206 commit cde40ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export function useLendSimulation({

React.useEffect(() => {
handleSimulation([
...(actionTxns?.actionTxn ? [actionTxns?.actionTxn] : []),
...(actionTxns?.additionalTxns ?? []),
...(actionTxns?.actionTxn ? [actionTxns?.actionTxn] : []),
]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [actionTxns]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ export function useLoopSimulation({

React.useEffect(() => {
handleSimulation([
...(actionTxns?.actionTxn ? [actionTxns?.actionTxn] : []),
...(actionTxns?.additionalTxns ?? []),
...(actionTxns?.actionTxn ? [actionTxns?.actionTxn] : []),
]);
}, [actionTxns]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ export function useRepayCollatSimulation({

React.useEffect(() => {
handleSimulation([
...(actionTxns?.actionTxn ? [actionTxns?.actionTxn] : []),
...(actionTxns?.additionalTxns ?? []),
...(actionTxns?.actionTxn ? [actionTxns?.actionTxn] : []),
]);
}, [actionTxns]);

Expand Down

0 comments on commit cde40ec

Please sign in to comment.