Skip to content

Commit

Permalink
fix: nextjs demo safeBody (#263)
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribo Labrador <elribonazo@gmail.com>
Signed-off-by: Curtish <ch@curtish.me>
Co-authored-by: Curtish <ch@curtish.me>
  • Loading branch information
elribonazo and curtis-h authored Aug 13, 2024
1 parent 99df3c0 commit 0d09ea7
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 200 deletions.
97 changes: 18 additions & 79 deletions demos/next/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions demos/next/src/reducers/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const appSlice = createSlice({
mediator: string
}>
) => {
state.mediatorDID = action.payload.mediator
state.mediatorDID = SDK.Domain.DID.fromString(action.payload.mediator)
},
[DBPreload.complete]: (
state,
Expand Down Expand Up @@ -176,7 +176,6 @@ const appSlice = createSlice({
isAnswering: true,
hasAnswered: false,
error: null,
safeBody: action.meta.arg.message.safeBody,
credentialFormat: action.meta.arg.message.credentialFormat
})
})
Expand Down
Loading

0 comments on commit 0d09ea7

Please sign in to comment.