do not allow empty updates

This commit is contained in:
Abi Raja 2024-06-26 13:39:22 +08:00
parent 4288cf2088
commit 9dfb0dc5b8

View File

@ -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."