add edit notice and clean code

This commit is contained in:
Patryk
2025-06-11 20:56:39 +02:00
parent b323f02654
commit 3c042d2cfb
7 changed files with 118 additions and 67 deletions

View File

@@ -94,7 +94,6 @@ export default function CreateNotice() {
});
if (!title || !description || !price || !category) {
console.log("Error in form");
return;
}
const formattedAttributes = Object.entries(selectedAttributes).map(
@@ -103,7 +102,6 @@ export default function CreateNotice() {
value: value,
})
);
// console.log("Selected attributes:", formattedAttributes);
setIsLoading(true);
try {
const result = await addNotice({