Standardize Event DB/Types and fix critical UI type mismatches across Badges, Journals, and Locations modules

This commit is contained in:
Scott Idem
2026-02-04 17:57:42 -05:00
parent 2e804ae01b
commit db34da66dc
15 changed files with 251 additions and 137 deletions

View File

@@ -204,7 +204,7 @@ function create_video_element({
// This function will take a long string (sentences or paragraphs) of text and return an estimated number of words.
function count_words(text: string) {
if (!text || text.length < 1) {
return false;
return 0;
}
const count = text.trim().split(/\s+/).length;