Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2844 from LedgerHQ/develop
Browse files Browse the repository at this point in the history
Prepare 2.2.3
  • Loading branch information
gre authored Apr 10, 2020
2 parents 758ffa1 + cb5d689 commit 7c23a0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ledger-live-desktop",
"productName": "Ledger Live",
"description": "Ledger Live - Desktop",
"version": "2.2.2",
"version": "2.2.2-nightly.20200409T2201",
"author": "Ledger Live Team <team-live@ledger.fr>",
"repository": "https://github.com/LedgerHQ/ledger-live-desktop",
"license": "MIT",
Expand Down
11 changes: 4 additions & 7 deletions src/renderer/modals/Send/Body.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import React, { useCallback, useEffect, useState } from "react";
import { connect, useDispatch } from "react-redux";
import { connect } from "react-redux";
import { compose } from "redux";
import type { TFunction } from "react-i18next";
import { createStructuredSelector } from "reselect";
Expand Down Expand Up @@ -123,7 +123,6 @@ const Body = ({
}: Props) => {
const openedFromAccount = !!params.account;
const [steps] = useState(createSteps);
const dispatch = useDispatch();

const {
transaction,
Expand Down Expand Up @@ -180,15 +179,13 @@ const Body = ({
(optimisticOperation: Operation) => {
if (!account) return;
const mainAccount = getMainAccount(account, parentAccount);
dispatch(
updateAccountWithUpdater(mainAccount.id, account =>
addPendingOperation(account, optimisticOperation),
),
updateAccountWithUpdater(mainAccount.id, account =>
addPendingOperation(account, optimisticOperation),
);
setOptimisticOperation(optimisticOperation);
setTransactionError(null);
},
[account, parentAccount, updateAccountWithUpdater, dispatch],
[account, parentAccount, updateAccountWithUpdater],
);

const handleStepChange = useCallback(e => onChangeStepId(e.id), [onChangeStepId]);
Expand Down

0 comments on commit 7c23a0f

Please sign in to comment.