Standardize Event DB/Types and fix critical UI type mismatches across Badges, Journals, and Locations modules
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user