From d07b2a2101c13bcefc1ba1330462e8039b4b382e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Mih=C3=A1ly?= Date: Wed, 22 Apr 2020 12:56:30 +0200 Subject: [PATCH] update with new props --- app/src/components/PeerAudio/PeerAudio.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/components/PeerAudio/PeerAudio.js b/app/src/components/PeerAudio/PeerAudio.js index d5ef982..c5a4396 100644 --- a/app/src/components/PeerAudio/PeerAudio.js +++ b/app/src/components/PeerAudio/PeerAudio.js @@ -34,9 +34,10 @@ export default class PeerAudio extends React.PureComponent // eslint-disable-next-line camelcase UNSAFE_componentWillReceiveProps(nextProps) { - const { audioTrack } = nextProps; - + const { audioTrack, audioOutputDevice } = nextProps; + this._setTrack(audioTrack); + this._setOutputDevice(audioOutputDevice); } _setTrack(audioTrack)