1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

adding code fence in extension file (#17874)

This commit is contained in:
Albert Olivé 2023-03-23 17:09:09 +01:00 committed by GitHub
parent 270ff26561
commit c89b93dc1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,9 +176,14 @@ export default class ExtensionPlatform {
_showFailedTransaction(txMeta, errorMessage) {
const nonce = parseInt(txMeta.txParams.nonce, 16);
const title = 'Failed transaction';
const message = `Transaction ${nonce} failed! ${
let message = `Transaction ${nonce} failed! ${
errorMessage || txMeta.err.message
}`;
///: BEGIN:ONLY_INCLUDE_IN(mmi)
if (isNaN(nonce)) {
message = `Transaction failed! ${errorMessage || txMeta.err.message}`;
}
///: END:ONLY_INCLUDE_IN
this._showNotification(title, message);
}