diff --git a/src/lib/ae_utils/ae_utils.ts b/src/lib/ae_utils/ae_utils.ts index 0cbe3b02..6e2818f0 100644 --- a/src/lib/ae_utils/ae_utils.ts +++ b/src/lib/ae_utils/ae_utils.ts @@ -127,9 +127,9 @@ function create_video_element({account_id, base_url, hosted_file_id, filename=nu // } -// This function will take a long string (sentences or paraghraphs) of text and return an estimated number of words. +// 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) { + if (!text || text.length < 1) { return false; } let count = text.trim().split(/\s+/).length;