Skip to content

Commit cee4b50

Browse files
committed
lint
1 parent 2d8727c commit cee4b50

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/app/features/call/CallView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ export function CallView({ resizable }: CallViewProps) {
174174
const [availableHeight, setAvailableHeight] = useState(0);
175175

176176
useEffect(() => {
177-
if (!resizable || !callViewRef.current) return;
177+
if (!resizable || !callViewRef.current) return undefined;
178178
const container = callViewRef.current.parentElement?.parentElement;
179-
if (!container) return;
179+
if (!container) return undefined;
180180

181181
const observer = new ResizeObserver((entries) => {
182182
if (entries[0]) {

src/app/features/call/callRingtone.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const CALL_RINGTONE_OPTIONS: CallToneOption<CallRingtoneId>[] = CALL_TONE
2828
})
2929
);
3030

31-
export const CALL_RINGBACK_OPTIONS: CallToneOption<CallRingtoneId>[] = CALL_RINGTONE_OPTIONS;
31+
export const CALL_RINGBACK_OPTIONS: CallToneOption<CallRingtoneId>[] = CALL_RINGTONE_OPTIONS.filter(
32+
(option) => option.value !== 'silent'
33+
);
3234

3335
type ToneSettings = Pick<Settings, 'isNotificationSounds' | 'callSoundOverrideGlobalNotifications'>;
3436

0 commit comments

Comments
 (0)