This commit is contained in:
Daniel Shleifman
2021-06-17 03:53:32 +03:00
parent fd6e227b4f
commit 520f41b98a

View File

@@ -263,7 +263,7 @@ export default function AddDialog({
<Button
variant='contained'
style={{ minWidth: '110px' }}
disabled={!torrentSource || isHashAlreadyExists || !isTorrentSourceCorrect}
disabled={!torrentSource || (isHashAlreadyExists && !isEditMode) || !isTorrentSourceCorrect}
onClick={handleSave}
color='primary'
>