diff --git a/frontend/src/app/shared/ord/rune.utils.ts b/frontend/src/app/shared/ord/rune.utils.ts index a1f947b46..c36f3ef06 100644 --- a/frontend/src/app/shared/ord/rune.utils.ts +++ b/frontend/src/app/shared/ord/rune.utils.ts @@ -201,9 +201,9 @@ function messageToRunestone(message: Message): Runestone { if (flags & Flag.ETCHING) { const hasTerms = (flags & Flag.TERMS) > 0n; const isTurbo = (flags & Flag.TURBO) > 0n; - const name = parseRuneName(message.fields[Tag.Rune][0]); + const name = parseRuneName(message.fields[Tag.Rune]?.[0] ?? 0n); etching = { - divisibility: Number(message.fields[Tag.Divisibility][0]), + divisibility: Number(message.fields[Tag.Divisibility]?.[0] ?? 0n), premine: message.fields[Tag.Premine]?.[0], symbol: message.fields[Tag.Symbol]?.[0] ? String.fromCodePoint(Number(message.fields[Tag.Symbol][0])) : 'ยค', terms: hasTerms ? {