mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-25 18:38:51 +00:00
Catch errors from <Amounts /> field a level up.
This commit is contained in:
parent
e4debe341a
commit
7c52d302ec
@ -29,6 +29,20 @@ class BodyClass extends React.Component<StateProps, State> {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public componentDidCatch(error: Error) {
|
||||||
|
if (error.message === 'Serialized transaction not found') {
|
||||||
|
/**
|
||||||
|
* @desc Occasionally, when a new signed transaction matches a previous transaction,
|
||||||
|
* the transaction state is cleared and a warning notification alerts the user. Once the
|
||||||
|
* transaction state is cleared, however, the <Amounts /> component's attempts at selecting
|
||||||
|
* the transaction causes the 'Serialized transaction not found' error.
|
||||||
|
* A longer term fix will involve finding a better way to calculate nonces to avoid
|
||||||
|
* nonce duplication on serial transactions.
|
||||||
|
*/
|
||||||
|
// Pass
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
const { showDetails } = this.state;
|
const { showDetails } = this.state;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user