Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

style(AudioTrack): improve readability

Hristo Terezov5a55c7b965a0
diff --git a/react/features/base/media/components/web/AudioTrack.js b/react/features/base/media/components/web/AudioTrack.js
index b7db2712ef..45c76b3e8a 100644
--- a/react/features/base/media/components/web/AudioTrack.js
+++ b/react/features/base/media/components/web/AudioTrack.js
@@ -123,8 +123,8 @@ export default class AudioTrack extends Component<Props> {
* from React.
*/
shouldComponentUpdate(nextProps: Props) {
- const currentJitsiTrack = this.props.audioTrack && this.props.audioTrack.jitsiTrack;
- const nextJitsiTrack = nextProps.audioTrack && nextProps.audioTrack.jitsiTrack;
+ const currentJitsiTrack = this.props.audioTrack?.jitsiTrack;
+ const nextJitsiTrack = nextProps.audioTrack?.jitsiTrack;
if (currentJitsiTrack !== nextJitsiTrack) {
this._detachTrack(this.props.audioTrack);