chore: fix

This commit is contained in:
2026-03-07 22:42:14 +01:00
parent 916d2a30ad
commit b0061cec8a
6 changed files with 203 additions and 43 deletions
+5 -1
View File
@@ -346,7 +346,9 @@ export const getAllAlerts = async (): Promise<{
export interface PublicSettings {
penalties_enabled: boolean;
show_amende_score: boolean;
points_enabled: boolean;
points_separated: boolean;
}
export const getPublicSettings = async (): Promise<PublicSettings> => {
@@ -354,9 +356,11 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
const { data } = await apiClient.get(`http://5.181.0.112/api/v1/app-settings`);
return {
penalties_enabled: data.penalties_enabled ?? true,
show_amende_score: data.show_amende_score ?? true,
points_enabled: data.points_enabled ?? true,
points_separated: data.points_separated ?? true,
};
} catch {
return { penalties_enabled: true, points_enabled: true };
return { penalties_enabled: true, show_amende_score: true, points_enabled: true, points_separated: true };
}
};