Skip to content

Commit

Permalink
add return type to a helper
Browse files Browse the repository at this point in the history
  • Loading branch information
NC-jsAhonen committed Nov 7, 2023
1 parent c98f0ae commit c9b7458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leases/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c9b7458

Please sign in to comment.