Skip to content

Commit ff345a8

Browse files
committed
docs(remote-config): onConfigUpdated error check for undefined not null
1 parent 8461691 commit ff345a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/remote-config/usage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Here is an example of how to use the feature, with comments emphasizing the key
199199
// Multiple listeners are supported, so listeners may be screen-specific and only handle certain keys
200200
// depending on application requirements
201201
let remoteConfigListenerUnsubscriber = await remoteConfig().onConfigUpdated((event, error) => {
202-
if (error !== null) {
202+
if (error !== undefined) {
203203
console.log('remote-config listener subscription error: ' + JSON.stringify(error));
204204
} else {
205205
// Updated keys are keys that are added, removed, or changed value, metadata, or source

0 commit comments

Comments
 (0)