Commit f5aac2a4 authored by Farid Neshat's avatar Farid Neshat

Fix selected_option is not reflected in the timeoff request

parent d3855334
......@@ -158,7 +158,7 @@ module.exports = function (robot) {
const timeOffStr = utils.formatTimeOff({ type: type.name, start, amount: data.amount, end, unit: type.unit});
attachment.text = `So you want ${timeOffStr}?`;
attachment.actions[0].selectedOptions = types.toOption(type);
attachment.actions[0].selected_options = types.toOption(type);
return originalMessage;
} else if (action.name === 'cancel') {
attachment.actions = [];
......
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