Skip to content

Commit

Permalink
Merge pull request #259 from CirclesUBI/fix-test
Browse files Browse the repository at this point in the history
Fix js grammar
  • Loading branch information
llunaCreixent authored Aug 19, 2024
2 parents 5e43adb + 1525fd4 commit 3a78fa8
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 3a78fa8

Please sign in to comment.