diff --git a/app/shared/convertCamelCaseToText.js b/app/shared/convertCamelCaseToText.js
index 9c2c77ae7a73a8fd37111db543a2c7bbdf98f117..5c0dcbab7d9f0a65ef950a37cdd8b8ba6aa5ab89 100644
--- a/app/shared/convertCamelCaseToText.js
+++ b/app/shared/convertCamelCaseToText.js
@@ -1,5 +1,6 @@
-export function convertCamelCaseToText (text) {
-    const result = text.replace( /([A-Z])/g, " $1" )
-    const finalResult = result.charAt(0) + result.slice(1)
-    return finalResult.toLowerCase()
-  }
\ No newline at end of file
+export function convertCamelCaseToText(text) {
+  if (typeof text !== 'string') return ''
+  const result = text.replace(/([A-Z])/g, ' $1')
+  const finalResult = result.charAt(0) + result.slice(1)
+  return finalResult.toLowerCase()
+}