Skip to content

Commit ad21550

Browse files
authored
Merge pull request #204 from ForgeRock/fix-resume-return
Fix resume return
2 parents e3235da + f473565 commit ad21550

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/plenty-apples-matter.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@forgerock/davinci-client': patch
3+
---
4+
5+
fix return value for social-login

packages/davinci-client/src/lib/client.store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ export async function davinci({
138138
* @returns unknown
139139
*/
140140
resume: async ({ continueToken }: { continueToken: string }) => {
141-
const node = store.dispatch(davinciApi.endpoints.resume.initiate({ continueToken }));
142-
return node;
141+
store.dispatch(davinciApi.endpoints.resume.initiate({ continueToken }));
142+
return store.getState().node;
143143
},
144144

145145
/**

0 commit comments

Comments
 (0)