From 13eae3da2ef96a415478d75415f9c29c970b3d34 Mon Sep 17 00:00:00 2001 From: Cogent Apps Date: Fri, 17 Mar 2023 03:03:11 +0000 Subject: [PATCH] persist unsubmitted prompts --- app/src/store/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/store/index.ts b/app/src/store/index.ts index dc846f3..fa5be68 100644 --- a/app/src/store/index.ts +++ b/app/src/store/index.ts @@ -20,6 +20,11 @@ const persistSidebarConfig = { storage, } +const persistMessageConfig = { + key: 'message', + storage, +} + const store = configureStore({ reducer: { // auth: authReducer, @@ -27,7 +32,7 @@ const store = configureStore({ settingsUI: settingsUIReducer, voices: persistReducer(persistConfig, voiceReducer), parameters: persistReducer(persistConfig, parametersReducer), - message: messageReducer, + message: persistReducer(persistMessageConfig, messageReducer), ui: uiReducer, sidebar: persistReducer(persistSidebarConfig, sidebarReducer), },