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

Do not show user rejection errors within our UI.

This commit is contained in:
Dan Finlay 2016-09-14 14:34:54 -07:00
parent 034742a571
commit a0bfdfe409

View File

@ -140,7 +140,9 @@ ConfirmTxScreen.prototype.goHome = function (event) {
}
function warningIfExists (warning) {
if (warning) {
if (warning &&
// Do not display user rejections on this screen:
warning.indexOf('User denied transaction signature') === -1) {
return h('span.error', { style: { margin: 'auto' } }, warning)
}
}