Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Jan 24, 2025
1 parent eeaa1da commit 4d8512d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app/src/systems/Send/hooks/useSend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ export function useSend() {

const account = store.useSelector(Services.accounts, selectors.account);

// Needed so we don't overload machine with a new obj account each render. This lead to the machine not using an updated reference of the account object.
const callTransactionRequest = useCallback(
(ctx: MachineContext) => {
const {
Expand Down Expand Up @@ -328,7 +327,8 @@ export function useSend() {
);

const service = useInterpret(
() => sendMachine.withConfig(sendMachineOpts),
// biome-ignore lint/suspicious/noExplicitAny: Even though account doesn't exist in the machine context, we need to pass it so the machine understands that it must update its references when account changes.
() => sendMachine.withContext({ account } as any),
sendMachineOpts
);

Expand Down

0 comments on commit 4d8512d

Please sign in to comment.