mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-11-03 12:18:15 +00:00
feat(app): fix empty message being sent
This commit is contained in:
@@ -535,7 +535,7 @@ export const ChatProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
messageId,
|
||||
rewrite = false,
|
||||
) => {
|
||||
if (loading) return;
|
||||
if (loading || !message) return;
|
||||
setLoading(true);
|
||||
setMessageAppeared(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user