chore: update market binaries
This commit is contained in:
parent
1a3fc62106
commit
7e71e7d169
15 changed files with 61 additions and 34 deletions
|
|
@ -11,7 +11,7 @@ var eventToObj = event => {
|
|||
try {
|
||||
event.content = JSON.parse(event.content) || null
|
||||
} catch {
|
||||
event.content = null
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -156,7 +156,7 @@ function isValidKey(key, prefix = 'n') {
|
|||
}
|
||||
|
||||
function isValidKeyHex(key) {
|
||||
return key?.toLowerCase()?.match(/^[0-9a-f]{64}$/)
|
||||
return !!key?.toLowerCase()?.match(/^[0-9a-f]{64}$/)
|
||||
}
|
||||
|
||||
function formatCurrency(value, currency) {
|
||||
|
|
@ -164,4 +164,4 @@ function formatCurrency(value, currency) {
|
|||
style: 'currency',
|
||||
currency: currency
|
||||
}).format(value)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue