Skip to content

Commit bfb480a

Browse files
authored
fix: correctly serialize identity (#54)
1 parent fae1b76 commit bfb480a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

playground/src/components/vault/Authentication.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export const Authentication = () => {
2929
try {
3030
const identity = await create_credential(selectedVault, username);
3131

32-
dispatch(actions.addIdentity(identity));
33-
32+
dispatch(actions.addIdentity(identity.to_json()));
3433
messageApi.success('You have now an identity.');
3534
} catch (error) {
3635
messageApi.error('Failed to register you.');

0 commit comments

Comments
 (0)