Break instead of return

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-08-07 21:30:58 +02:00
parent 78f53b3f6b
commit 2d5dc6d529
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ export default class CallHandler extends EventEmitter {
this.play(AudioID.Busy);
// 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 description;