Skip to content

Commit

Permalink
docs(remote-config): onConfigUpdated error check for undefined not null
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Nov 27, 2023
1 parent 8461691 commit ff345a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/remote-config/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Here is an example of how to use the feature, with comments emphasizing the key
// Multiple listeners are supported, so listeners may be screen-specific and only handle certain keys
// depending on application requirements
let remoteConfigListenerUnsubscriber = await remoteConfig().onConfigUpdated((event, error) => {
if (error !== null) {
if (error !== undefined) {
console.log('remote-config listener subscription error: ' + JSON.stringify(error));
} else {
// Updated keys are keys that are added, removed, or changed value, metadata, or source
Expand Down

1 comment on commit ff345a8

@vercel
Copy link

@vercel vercel bot commented on ff345a8 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.