[webnfc] Fix a bug for mock nfc impl
In js, "enum_value ? x : y;" will get y if enum_value is 0, but x is what we actually want to get in such a case. The correct code should be "enum_value != null ? x : y". BUG=520391 Change-Id: Ibe3771d0dc0ece3cd6659aec298306f694a8f0e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037106 Commit-Queue: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by:Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Cr-Commit-Position: refs/heads/master@{#739339}
Showing
Please register or sign in to comment