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:
parent
270ff26561
commit
c89b93dc1d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user