chore: build

This commit is contained in:
2026-06-11 14:50:59 +02:00
parent 9b50dca96c
commit 3e02aaa9b2
8 changed files with 80 additions and 42 deletions
+3
View File
@@ -777,6 +777,7 @@ export interface PublicSettings {
nowpayments_currencies: string[];
telegram_notifications_enabled: boolean;
two_fa_enabled: boolean;
contact_telegram: string;
}
export const getPublicSettings = async (): Promise<PublicSettings> => {
@@ -792,6 +793,7 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
nowpayments_currencies: [],
telegram_notifications_enabled: false,
two_fa_enabled: false,
contact_telegram: "",
};
try {
const { data } = await apiClient.get(`${V1}/app-settings`);
@@ -813,6 +815,7 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
telegram_notifications_enabled:
data.telegram_notifications_enabled ?? false,
two_fa_enabled: data.two_fa_enabled ?? false,
contact_telegram: data.contact_telegram || "",
};
} catch {
return defaults;