From 2c32826c645c955fd606a0cb110b9c15e45c48db Mon Sep 17 00:00:00 2001
From: lelenium
Date: Fri, 23 Apr 2021 18:43:25 +0200
Subject: [PATCH] Save state -> Load state
---
src/dom-components/Savefile.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/dom-components/Savefile.tsx b/src/dom-components/Savefile.tsx
index 4037473..90713d6 100644
--- a/src/dom-components/Savefile.tsx
+++ b/src/dom-components/Savefile.tsx
@@ -8,7 +8,7 @@ const Savefile = () => {
setTextAreaValue(localStorage.getItem("lainSaveState") || "");
}, []);
- const saveState = useCallback(() => {
+ const loadState = useCallback(() => {
if (textAreaValue) localStorage.setItem("lainSaveState", textAreaValue);
else localStorage.setItem("lainSaveState", "");
}, [textAreaValue]);
@@ -25,11 +25,11 @@ const Savefile = () => {
the box below is your "save file". To export it for future use, just
copy everything inside it and paste it inside a file somewhere
locally. To re-import it later, take the contents of the file, paste
- them here, and press "Save state". After that, reload the website.
+ them here, and press "Load state". After that, reload the website.
If you're here simply to reset your progress, just delete everything
- inside the textbox below and press "Save state".
+ inside the textbox below and press "Load state".
Keep in mind, manually modifying the contents without being
@@ -38,7 +38,7 @@ const Savefile = () => {