feat: fixes

This commit is contained in:
2025-12-10 10:29:27 +01:00
parent 1ead7d2dec
commit 02579b65f9
5 changed files with 34 additions and 11 deletions
+6 -1
View File
@@ -55,7 +55,12 @@ const ValidateCover = () => {
const handleSelectOption = useCallback(
async (option) => {
if (!option || option?.id === selectedOptionId || isSelecting) {
if (
!option ||
option?.id === selectedOptionId ||
isSelecting ||
selectedOptionId // Prevent re-selection
) {
return;
}
const existingCover = selectedProject?.cover || {};