Skip to content

Commit

Permalink
fix: missing setState for isInitialSetupComplete (#135)
Browse files Browse the repository at this point in the history
## Description
- Follow-up from PR #134
- Adds in the missing setState for updating isInitialSetupComplete. I
must of deleted it by accident when I was removing all my console logs 馃槥

Co-authored-by: Stephen Gill <stephen.gill@adevinta.com>
  • Loading branch information
caffeinated-pixels and Stephen Gill committed Feb 8, 2024
1 parent 69f220c commit 70eeef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/AdvertisingProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default class AdvertisingProvider extends Component {
async componentDidMount() {
if (this.advertising.isConfigReady() && this.props.active) {
await this.advertising.setup();
// eslint-disable-next-line react/no-did-mount-set-state
this.setState({ isInitialSetupComplete: true });
}
}

Expand Down

0 comments on commit 70eeef7

Please sign in to comment.