From 9dfb0dc5b83639a0e570bee2fd4d598cc776a6cd Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 26 Jun 2024 13:39:22 +0800 Subject: [PATCH] do not allow empty updates --- frontend/src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e6f8503..22d167b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -298,6 +298,11 @@ function App() { updateInstruction: string, selectedElement?: HTMLElement ) { + if (updateInstruction.trim() === "") { + toast.error("Please include some instructions for AI on what to update."); + return; + } + if (currentVersion === null) { toast.error( "No current version set. Contact support or open a Github issue."