From ebafdc2e8c0c7f04269fbffb4c3b64afe6168863 Mon Sep 17 00:00:00 2001 From: Heather Yu <35639529+hetd54@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:29:47 -0400 Subject: [PATCH] refactor: replace -> assign --- src/components/DataForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DataForm.tsx b/src/components/DataForm.tsx index eba43a3..690f156 100644 --- a/src/components/DataForm.tsx +++ b/src/components/DataForm.tsx @@ -17,7 +17,7 @@ const DataForm = () => { const onSubmit: SubmitHandler = async (data) => { await addHistoryData(data) - window.location.replace("https://repository.library.brown.edu/studio/item/bdr:p54c6u36/") + window.location.assign("https://repository.library.brown.edu/studio/item/bdr:p54c6u36/") } return (