Skip to content

Commit

Permalink
Update Popup.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Raj Jain authored Oct 16, 2023
1 parent dcfd882 commit cea53bf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/embeds/js/src/features/popup/components/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ export const Popup = (props: PopupProps) => {
}

const toggleBot = () => {
if (isBotOpened()) {
closeBot()
}
else {
openBot()
}
isBotOpened() ? closeBot() : openBot()
}

return (
Expand Down

0 comments on commit cea53bf

Please sign in to comment.