mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 15:25:23 +02:00
Fix duplicate handleAddAsin function
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
co-authored by
Qwen-Coder
parent
46d87127c8
commit
5efc2d519e
@@ -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: '📢' },
|
||||||
|
|||||||
Reference in New Issue
Block a user