Catch errors from <Amounts /> field a level up.

This commit is contained in:
Connor Bryan 2018-07-09 15:16:46 -05:00
parent e4debe341a
commit 7c52d302ec

View File

@ -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() {
const { showDetails } = this.state;