diff --git a/components/konstitisyon/create/index.js b/components/konstitisyon/create/index.js index 67b0b29..e29bbe5 100644 --- a/components/konstitisyon/create/index.js +++ b/components/konstitisyon/create/index.js @@ -24,7 +24,7 @@ export default function Create({session}) { const [error, setError] = useState('') const [success, setSuccess] = useState('') - const handleTitresDialog = collection => { + const handleClick = collection => { setCollection(collection) setIsDialogOpen(true) } @@ -58,7 +58,7 @@ export default function Create({session}) { key={name} icon={icon} tooltipTitle={name} - onClick={() => handleTitresDialog(id)} + onClick={() => handleClick(id)} /> ))}