Skip to content

Commit

Permalink
Fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
llunaCreixent committed Aug 19, 2024
1 parent 5e43adb commit 1525fd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ export default function createUserModule(web3, contracts, utils) {

if (
response &&
response.data &&
response.data.profileMigrationConsent
'data' in response &&
'profileMigrationConsent' in response.data
) {
return response.data.profileMigrationConsent;
}
Expand Down
2 changes: 1 addition & 1 deletion test/user.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ describe('User - update profile migration consent', () => {
).toBe(false);
});

it('should return correct value of profile migration consent after updatins', async () => {
it('should return correct value of profile migration consent after updating', async () => {
await core.user.updateProfileMigrationConsent(account, {
safeAddress,
profileMigrationConsent: true,
Expand Down

0 comments on commit 1525fd4

Please sign in to comment.