Stop manually truncating
Browsers are better at this
This commit is contained in:
parent
873d5da2cd
commit
355a52d100
1 changed files with 1 additions and 6 deletions
|
|
@ -24,12 +24,7 @@
|
|||
if (a.number == "" && a.street == "") {
|
||||
return "no address provided";
|
||||
}
|
||||
const result = a.number + " " + a.street + ", " + a.locality;
|
||||
if (result.length > 30) {
|
||||
return result.substring(0, 30) + "...";
|
||||
} else {
|
||||
return result;
|
||||
}
|
||||
return a.number + " " + a.street + ", " + a.locality;
|
||||
}
|
||||
function communicationsApp() {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue