Skip to content

Commit d30a4ad

Browse files
authored
Fix readme example (#1189)
onboard.state.actions.updateAccountCenter function takes settings object directly, no need for desktop/mobile wrapper otherwise error is thrown
1 parent e27f53c commit d30a4ad

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/core/README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,16 +710,9 @@ If you need to update your Account Center configuration after initialization, yo
710710

711711
```typescript
712712
onboard.state.actions.updateAccountCenter({
713-
desktop: {
714-
position: 'topRight',
715-
enabled: true,
716-
minimal: true
717-
},
718-
mobile: {
719-
position: 'topRight',
720-
enabled: true,
721-
minimal: true
722-
}
713+
position: 'topRight',
714+
enabled: true,
715+
minimal: true
723716
})
724717
```
725718

0 commit comments

Comments
 (0)