From b92e0f14688095797f43ea5215aa0ec93aad1717 Mon Sep 17 00:00:00 2001 From: David Walker Date: Wed, 15 Mar 2023 18:10:48 -0700 Subject: [PATCH] BUGFIX: Allow (attempting) importing the same save filename twice in a row (#424) --- src/GameOptions/ui/GameOptionsSidebar.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GameOptions/ui/GameOptionsSidebar.tsx b/src/GameOptions/ui/GameOptionsSidebar.tsx index 5897f2687..b1bcbc576 100644 --- a/src/GameOptions/ui/GameOptionsSidebar.tsx +++ b/src/GameOptions/ui/GameOptionsSidebar.tsx @@ -73,6 +73,9 @@ export const GameOptionsSidebar = (props: IProps): React.ReactElement => { } catch (e: unknown) { console.error(e); SnackbarEvents.emit(String(e), ToastVariant.ERROR, 5000); + } finally { + // Re-trigger if we import the same save + event.target.value = ""; } }