diff --git a/src/dashboard/components/template-cloud/Sources.js b/src/dashboard/components/template-cloud/Sources.js index ceb2f9231..908b32d25 100644 --- a/src/dashboard/components/template-cloud/Sources.js +++ b/src/dashboard/components/template-cloud/Sources.js @@ -10,7 +10,8 @@ const Sources = ({ sourcesData, setSources, isSyncing }) => { const [ error, setError ] = useState(''); const deleteSource = (key) => { - const confirm = window.confirm(__('Are you sure you want to delete this source?', 'otter-blocks')); + // eslint-disable-next-line no-alert + const confirm = confirm(__('Are you sure you want to delete this source?', 'otter-blocks')); if (!confirm) { return;