From c9b7458dc3c36a38717e463ff85361dd1d1d6c2c Mon Sep 17 00:00:00 2001 From: Jukka Ahonen Date: Tue, 7 Nov 2023 11:17:35 +0200 Subject: [PATCH] add return type to a helper --- src/leases/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leases/helpers.js b/src/leases/helpers.js index 219a56e8b..c5aae4f89 100644 --- a/src/leases/helpers.js +++ b/src/leases/helpers.js @@ -157,7 +157,7 @@ export const getFullAddress = (item: Object): ?string => { * @returns {string} */ -export const getTitleText = (text: ?string, maxLength: number) => { +export const getTitleText = (text: ?string, maxLength: number): string => { if (text) { return text.length > maxLength ? text.substr(0, maxLength) + "..." : text } else {