Fixed silent error on notification side-effect
Summary: Fixed silent error on showing deprecated format notification Reviewed By: jknoxville Differential Revision: D22066427 fbshipit-source-id: ae721aaa45e111df3cf8d8344554efac54b6d2ec
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a93e5292d0
commit
96645a21b1
@@ -190,7 +190,13 @@ export default (store: Store, logger: Logger) => {
|
|||||||
closeAfter: 10000,
|
closeAfter: 10000,
|
||||||
pluginNotification: n,
|
pluginNotification: n,
|
||||||
});
|
});
|
||||||
logger.track('usage', 'native-notification', n.notification);
|
logger.track('usage', 'native-notification', {
|
||||||
|
...n.notification,
|
||||||
|
message:
|
||||||
|
typeof n.notification.message === 'string'
|
||||||
|
? n.notification.message
|
||||||
|
: '<ReactNode>',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user