Skip to content

Commit 37ac9aa

Browse files
committed
Force answers to be up to date before pushing
1 parent e216c3b commit 37ac9aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/store/hooks/useNextStep.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ export function useNextStep() {
117117
);
118118
// Update database
119119
if (storageEngine) {
120-
storageEngine.saveAnswers({ ...answers });
120+
// Force the answers to be up to date before saving
121+
storageEngine.saveAnswers({ ...answers, [identifier]: toSave });
121122
}
122123
storeDispatch(setReactiveAnswers({}));
123124
storeDispatch(setMatrixAnswersCheckbox(null));

0 commit comments

Comments
 (0)