chore: build
Frontend Web - Build & Lint / build (push) Has been cancelled

This commit is contained in:
2026-06-27 23:54:42 +02:00
parent 69711796a3
commit d9ad4cb2cf
3 changed files with 534 additions and 634 deletions
+11 -5
View File
@@ -1920,8 +1920,10 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
client_color_success: data.client_color_success || "#22c55e",
client_color_danger: data.client_color_danger || "#ef4444",
client_color_warning: data.client_color_warning || "#f59e0b",
client_title_gradient_from: data.client_title_gradient_from || "#a78bfa",
client_title_gradient_to: data.client_title_gradient_to || "#22d3ee",
client_title_gradient_from:
data.client_title_gradient_from || "#a78bfa",
client_title_gradient_to:
data.client_title_gradient_to || "#22d3ee",
};
} catch {
return defaults;
@@ -2266,12 +2268,13 @@ export const getOrderRatingStatus = async (
export const claimMyReward = async (
poolKey: string,
productId?: number,
): Promise<{
success: boolean;
description?: string;
remaining_rewards?: number;
product_added?: boolean;
product_name?: string;
product_names?: string[];
error?: string;
}> => {
const token = getAuthToken();
@@ -2283,7 +2286,10 @@ export const claimMyReward = async (
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ pool_key: poolKey }),
body: JSON.stringify({
pool_key: poolKey,
product_id: productId ?? 0,
}),
});
const data = await safeJson(response);
if (!response.ok)
@@ -2293,7 +2299,7 @@ export const claimMyReward = async (
description: data.description,
remaining_rewards: data.remaining_rewards,
product_added: data.product_added,
product_name: data.product_name,
product_names: data.product_names,
};
} catch {
return { success: false, error: "Erreur de connexion" };