Skip to content

Commit

Permalink
fix speed up send asset (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed May 20, 2021
1 parent cdb8e03 commit d204dae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/screens/SpeedUpAndCancelSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export default function SpeedUpAndCancelSheet() {
);
const fetchedTx = useRef(false);
const [gasLimit, setGasLimit] = useState(tx.gasLimit);
const [to, setTo] = useState(tx.to);
const [data, setData] = useState(tx.data);
const [value, setValue] = useState(tx.value);
const [nonce, setNonce] = useState(tx.nonce);
Expand Down Expand Up @@ -201,7 +202,7 @@ export default function SpeedUpAndCancelSheet() {
gasLimit,
gasPrice,
nonce,
to: tx.to,
to,
value,
};
existingWallet = await loadWallet();
Expand All @@ -224,7 +225,7 @@ export default function SpeedUpAndCancelSheet() {
} finally {
goBack();
}
}, [data, dispatch, gasLimit, getNewGasPrice, goBack, nonce, tx, value]);
}, [data, dispatch, gasLimit, getNewGasPrice, goBack, nonce, to, tx, value]);

useEffect(() => {
InteractionManager.runAfterInteractions(async () => {
Expand All @@ -241,6 +242,7 @@ export default function SpeedUpAndCancelSheet() {
setNonce(txObj.nonce);
setValue(hexValue);
setData(hexData);
setTo(txObj.to);
setGasLimit(hexGasLimit);
setMinGasPrice(calcMinGasPriceAllowed(hexGasPrice));
}
Expand Down

0 comments on commit d204dae

Please sign in to comment.