Trim spaces for more forgiving copy paste

This commit is contained in:
Manav Rathi
2024-04-16 21:02:57 +05:30
parent c98d5a3e40
commit d80358552f

View File

@@ -50,7 +50,7 @@ export default function AlbumCastDialog(props: Props) {
setFieldError,
) => {
try {
await doCast(value);
await doCast(value.trim());
props.onHide();
} catch (e) {
const error = e as Error;