add edit notice and clean code
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user