Skip to content

Commit

Permalink
added dynamic check in set states
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Jun 12, 2024
1 parent 0927cda commit 7aaabf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/containers/InteractiveMessage/InteractiveMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ export const InteractiveMessage = () => {
if (typeValue === QUICK_REPLY && data.type && data.attachmentURL) {
setType({ id: data.type, label: data.type });
setAttachmentURL(data.attachmentURL);
if (data.attachmentURL.startsWith('@')) {
console.log('ddnj');

setDynamicInteractiveMessage(true);
}
}

if (translationsVal) {
Expand Down

0 comments on commit 7aaabf0

Please sign in to comment.