Skip to content
Snippets Groups Projects
Commit 9a78f76b authored by Quentin Bramas's avatar Quentin Bramas
Browse files

do not confirm answer 0 on startup

parent aabe228f
Branches
Tags
No related merge requests found
Pipeline #347371 passed with stages
in 57 seconds
......@@ -379,6 +379,9 @@ const actions = {
stopPreview: () => ({ previewSlideId: -1 }),
setAnswer: (value) => (state, actions) => {
if (state.kind === 'OFFLINE') {
if (!state.started) {
return { answer: value }
}
let shuffledId = state.shuffledSlidesIndex[state.currentFreeSlideId];
let offlineConfirmedState = {
...state.offlineConfirmedState,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment