Skip to content

Commit

Permalink
Merge pull request #8 from athrael-soju/fix-SendButton
Browse files Browse the repository at this point in the history
SendButton in multimodal-input Sends Only the First Character
  • Loading branch information
athrael-soju authored Dec 19, 2024
2 parents 1156322 + 38180ae commit b688765
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/multimodal-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,4 @@ function PureSendButton({
);
}

const SendButton = memo(PureSendButton, (prevProps, nextProps) => {
if (prevProps.uploadQueue.length !== nextProps.uploadQueue.length)
return false;
if (!prevProps.input !== !nextProps.input) return false;
return true;
});
const SendButton = PureSendButton;

0 comments on commit b688765

Please sign in to comment.