Commit f8134517 authored by Farid Neshat's avatar Farid Neshat

Show id of the timeoff if exists

parent 7cef132c
......@@ -7,6 +7,11 @@ exports.formatTimeOff = ({type, start, end, amount, unit, amountUnit, id}) => {
let result = `${type.toLowerCase()} from *${
exports.formatDate(start, true)}* to *${exports.formatDate(end)}* for ${
amount} working ${unit || amountUnit}`;
if (id) {
result += ` with id of ${id}`;
}
return result;
};
exports.formatDate = (date, withYear, format = HUMAN_DATE_FORMAT) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment