fix altTitle for backwards compatibility

wasm2
Jon Eugster 3 years ago
parent eaa214ec37
commit 03a370464b

@ -101,7 +101,7 @@ function InventoryItem({item, name, displayName, locked, disabled, newly, showDo
// Note: This is somewhat a hack as the statement of lemmas comes currently in the form // Note: This is somewhat a hack as the statement of lemmas comes currently in the form
// `Namespace.statement_name (x y : Nat) : some type` // `Namespace.statement_name (x y : Nat) : some type`
const title = locked ? "Not unlocked yet" : const title = locked ? "Not unlocked yet" :
disabled ? "Not available in this level" : item.altTitle.substring(item.altTitle.indexOf(' ') + 1) disabled ? "Not available in this level" : (item.altTitle ? item.altTitle.substring(item.altTitle.indexOf(' ') + 1) : '')
const [copied, setCopied] = useState(false) const [copied, setCopied] = useState(false)

Loading…
Cancel
Save