Fix duplicate handleAddAsin function

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Christian Vidal Wolf
2026-02-21 09:15:16 +01:00
co-authored by Qwen-Coder
parent 46d87127c8
commit 5efc2d519e
-11
View File
@@ -89,17 +89,6 @@ const ExperimentForm: React.FC<ExperimentFormProps> = ({
} }
}; };
const handleAddAsin = () => {
const newAsins = asinInput
.split(',')
.map(a => a.trim().toUpperCase())
.filter(a => a.length > 0);
const uniqueAsins = Array.from(new Set([...formData.asins, ...newAsins]));
setFormData({ ...formData, asins: uniqueAsins });
setAsinInput('');
};
const typeOptions: { value: ExperimentType; label: string; icon: string }[] = [ const typeOptions: { value: ExperimentType; label: string; icon: string }[] = [
{ value: 'pricing', label: 'Pricing', icon: '💰' }, { value: 'pricing', label: 'Pricing', icon: '💰' },
{ value: 'advertising', label: 'Advertising', icon: '📢' }, { value: 'advertising', label: 'Advertising', icon: '📢' },