BUGFIX: Allow (attempting) importing the same save filename twice in a row (#424)

This commit is contained in:
David Walker 2023-03-15 18:10:48 -07:00 committed by GitHub
parent 028d9f9462
commit b92e0f1468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -73,6 +73,9 @@ export const GameOptionsSidebar = (props: IProps): React.ReactElement => {
} catch (e: unknown) { } catch (e: unknown) {
console.error(e); console.error(e);
SnackbarEvents.emit(String(e), ToastVariant.ERROR, 5000); SnackbarEvents.emit(String(e), ToastVariant.ERROR, 5000);
} finally {
// Re-trigger if we import the same save
event.target.value = "";
} }
} }