diff --git a/src/containers/Chat/ChatMessages/ListReplyTemplate/ListReplyTemplate.tsx b/src/containers/Chat/ChatMessages/ListReplyTemplate/ListReplyTemplate.tsx index 3e714b9b6..f7f9d7090 100644 --- a/src/containers/Chat/ChatMessages/ListReplyTemplate/ListReplyTemplate.tsx +++ b/src/containers/Chat/ChatMessages/ListReplyTemplate/ListReplyTemplate.tsx @@ -168,7 +168,7 @@ export const ListReplyTemplateDrawer: React.SFC = (props) => { title: option.title, id: '', reply: `${option.title} ${index + 1} `, - postbackText: '', + postbackText: option.postbackText ?? '', description: option.description, }, context: { diff --git a/src/containers/Chat/ChatMessages/QuickReplyTemplate/QuickReplyTemplate.tsx b/src/containers/Chat/ChatMessages/QuickReplyTemplate/QuickReplyTemplate.tsx index 6083a295b..b4284cb4f 100644 --- a/src/containers/Chat/ChatMessages/QuickReplyTemplate/QuickReplyTemplate.tsx +++ b/src/containers/Chat/ChatMessages/QuickReplyTemplate/QuickReplyTemplate.tsx @@ -16,6 +16,7 @@ interface Content { interface ButtonOption { type: string; title: string; + postbackText: string | null; } export interface QuickReplyTemplateProps { @@ -48,6 +49,7 @@ export const QuickReplyTemplate: React.SFC = (props) => if (option.title) { const payloadObject = { payload: { + postbackText: option.postbackText ?? '', type: 'button_reply', title: option.title, id: '',