Skip to content

Commit cea53bf

Browse files
author
Rishi Raj Jain
authored
Update Popup.tsx
1 parent dcfd882 commit cea53bf

File tree

1 file changed

+1
-6
lines changed
  • packages/embeds/js/src/features/popup/components

1 file changed

+1
-6
lines changed

packages/embeds/js/src/features/popup/components/Popup.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,7 @@ export const Popup = (props: PopupProps) => {
102102
}
103103

104104
const toggleBot = () => {
105-
if (isBotOpened()) {
106-
closeBot()
107-
}
108-
else {
109-
openBot()
110-
}
105+
isBotOpened() ? closeBot() : openBot()
111106
}
112107

113108
return (

0 commit comments

Comments
 (0)