chore: fix
This commit is contained in:
@@ -2010,7 +2010,10 @@ export const updateMyProfile = async (fields: {
|
||||
// 🤖 TELEGRAM
|
||||
// ============================================
|
||||
|
||||
export const getTelegramStatus = async (): Promise<{ linked: boolean; enabled: boolean }> => {
|
||||
export const getTelegramStatus = async (): Promise<{
|
||||
linked: boolean;
|
||||
enabled: boolean;
|
||||
}> => {
|
||||
const token = getAuthToken();
|
||||
if (!token) return { linked: false, enabled: false };
|
||||
try {
|
||||
@@ -2048,5 +2051,7 @@ export const unlinkTelegram = async (): Promise<void> => {
|
||||
method: "DELETE",
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
});
|
||||
} catch { /* silencieux */ }
|
||||
} catch {
|
||||
/* silencieux */
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user