mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fixed blank boolean field for typed signing for old UI
This commit is contained in:
parent
1ff29c5b4a
commit
f4d085550e
@ -34,9 +34,13 @@ TypedMessageRenderer.prototype.render = function () {
|
|||||||
|
|
||||||
function renderTypedData (values) {
|
function renderTypedData (values) {
|
||||||
return values.map(function (value) {
|
return values.map(function (value) {
|
||||||
|
let v = value.value
|
||||||
|
if (typeof v === "boolean") {
|
||||||
|
v = v.toString()
|
||||||
|
}
|
||||||
return h('div', {}, [
|
return h('div', {}, [
|
||||||
h('strong', {style: {display: 'block', fontWeight: 'bold'}}, String(value.name) + ':'),
|
h('strong', {style: {display: 'block', fontWeight: 'bold'}}, String(value.name) + ':'),
|
||||||
h('div', {}, value.value),
|
h('div', {}, v),
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user