mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: return handle if no jCard
This commit is contained in:
parent
997d247a39
commit
2ac1ae1a4c
@ -69,6 +69,8 @@ export const actionToIcon = (a: EventAction) => a === 'registration' ?
|
||||
|
||||
|
||||
export const entityToName = (e: { entity: Entity }): string => {
|
||||
if (e.entity.jCard.length === 0) return e.entity.handle
|
||||
|
||||
const jCard = vCard.fromJSON(e.entity.jCard)
|
||||
let name = e.entity.handle
|
||||
if (jCard.data.fn && !Array.isArray(jCard.data.fn) && jCard.data.fn.valueOf() !== '') name = jCard.data.fn.valueOf()
|
||||
|
||||
@ -943,13 +943,13 @@ msgid ""
|
||||
"another"
|
||||
msgstr ""
|
||||
|
||||
#: assets/utils/index.tsx:101
|
||||
#: assets/utils/index.tsx:103
|
||||
#, javascript-format
|
||||
msgid "Please retry after ${ duration } seconds"
|
||||
msgstr ""
|
||||
|
||||
#: assets/utils/index.tsx:105
|
||||
#: assets/utils/index.tsx:108
|
||||
#: assets/utils/index.tsx:107
|
||||
#: assets/utils/index.tsx:110
|
||||
msgid "An error occurred"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user