Skip to content

Commit 89c0807

Browse files
committed
Reset position and expanded state of cards on activation.
1 parent 544a4c7 commit 89c0807

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reducers/cards.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const reducer = function (state, action) {
4242
return Object.assign({}, state, {
4343
activeDeckId: action.activeDeckId,
4444
step: 0,
45+
x: 0,
46+
y: 0,
47+
expanded: true,
4548
visible: true
4649
});
4750
case NEXT_STEP:

0 commit comments

Comments
 (0)