Skip to content

Commit

Permalink
🐛 fix: fix issue #279 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
mannix-lei authored Aug 9, 2024
1 parent 4a0b820 commit 427e4c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ProChat/container/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ const App = memo<ConversationProps>(
onResize={(e) => {
if (
typeof height !== typeof e.height ||
(typeof height === 'string' && typeof e.height === 'string' && e.height !== height) ||
(typeof height === 'number' && Math.abs(e.height - height) > 1)
(typeof height === 'string' && typeof e.height === 'string' && e.height !== height)
) {
// stop shaking
setHeight(e.height);
Expand Down

0 comments on commit 427e4c9

Please sign in to comment.