Skip to content

Commit

Permalink
Refactor: Update chat widget default position animation
Browse files Browse the repository at this point in the history
  • Loading branch information
anovazzi1 committed Jul 2, 2024
1 parent b798d1e commit 39dbf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chatWidget/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getChatPosition(
}

export function getAnimationOrigin(position?:string) {
if(!position) return "origin-bottom-right";
if(!position) return "origin-top-left";
switch (position) {
case "top-left":
return 'origin-bottom-right'
Expand All @@ -62,7 +62,7 @@ export function getAnimationOrigin(position?:string) {
case "bottom-left":
return "origin-top-right"
default:
return "origin-bottom-right"
return "origin-top-left"
}
}

Expand Down

0 comments on commit 39dbf33

Please sign in to comment.