chore: update market binaries

This commit is contained in:
Vlad Stan 2023-09-15 15:25:02 +03:00
parent 1a3fc62106
commit 7e71e7d169
15 changed files with 61 additions and 34 deletions

View file

@ -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)
}
}