Skip to content

Commit

Permalink
cp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tlodge committed Apr 4, 2022
1 parent 5aeb128 commit e9d9db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/questions/questionSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ export const setAnswer = (payload): AppThunk => async (dispatch, getState) => {
}

export const saveShape = (): AppThunk => async (dispatch, getState) => {
console.log("SVING SHAPE!!");
const answers = getState().questions.answers;
const result = await post("/api/save", answers);
const {id} = result;
Expand Down
1 change: 1 addition & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export default function Home(props) {
};

const moveToFinal = ()=>{
console.log("dispatching save shape!!");
dispatch(saveShape())
setView("final")
}
Expand Down

1 comment on commit e9d9db8

@vercel
Copy link

@vercel vercel bot commented on e9d9db8 Apr 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.