Break instead of return
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
+1
-1
@@ -511,7 +511,7 @@ export default class CallHandler extends EventEmitter {
|
|||||||
this.play(AudioID.Busy);
|
this.play(AudioID.Busy);
|
||||||
|
|
||||||
// Don't show a modal when we got rejected/the call was hung up
|
// Don't show a modal when we got rejected/the call was hung up
|
||||||
if (!hangupReason || [CallErrorCode.UserHangup, "user hangup"].includes(hangupReason)) return;
|
if (!hangupReason || [CallErrorCode.UserHangup, "user hangup"].includes(hangupReason)) break;
|
||||||
|
|
||||||
let title;
|
let title;
|
||||||
let description;
|
let description;
|
||||||
|
|||||||
Reference in New Issue
Block a user