unee-t / frontend

Meteor front end
https://case.dev.unee-t.com/
GNU Affero General Public License v3.0
9 stars 17 forks source link

Email notification - text is awkward if we have no address for the unit #829

Open franck-boullier opened 5 years ago

franck-boullier commented 5 years ago

The problem:

When we have no address information for a unit, the text of the notification is awkward as it assumes that the address will always be there

Current text if there is no address is

(...) Case 3 - Unit 1 - 11June19 has been reported in Unit 1 - 11Jun19 at and (...)

Suggested solution:

If we have no address information for the unit, then remove the unnecessary at and change the text to

(...) Case 3 - Unit 1 - 11June19 has been reported in Unit 1 - 11Jun19 and (...)