From 1a9d2e27773e992c1e4e1c303c806476fab56561 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 8 Mar 2026 16:06:24 -0500 Subject: [PATCH] Remove double error notifications. --- frontend/src/api.js | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/frontend/src/api.js b/frontend/src/api.js index 369336e8..9e4ac982 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -2675,11 +2675,14 @@ export default class API { static async extendRecording(id, extraMinutes) { try { - const resp = await request(`${host}/api/channels/recordings/${id}/extend/`, { - method: 'POST', - body: JSON.stringify({ extra_minutes: extraMinutes }), - headers: { 'Content-Type': 'application/json' }, - }); + const resp = await request( + `${host}/api/channels/recordings/${id}/extend/`, + { + method: 'POST', + body: JSON.stringify({ extra_minutes: extraMinutes }), + headers: { 'Content-Type': 'application/json' }, + } + ); return resp; } catch (e) { errorNotification(`Failed to extend recording ${id}`, e); @@ -2900,16 +2903,10 @@ export default class API { } static async updateMe(data) { - try { - const response = await request(`${host}/api/accounts/users/me/`, { - method: 'PATCH', - body: data, - }); - return response; - } catch (e) { - errorNotification('Failed to update user preferences', e); - throw e; - } + return await request(`${host}/api/accounts/users/me/`, { + method: 'PATCH', + body: data, + }); } static async getUsers() {