chore: build

This commit is contained in:
2026-06-15 19:13:51 +02:00
parent c7d43e7641
commit 48e6cbcb4c
4 changed files with 656 additions and 142 deletions
+4 -2
View File
@@ -969,7 +969,7 @@ export const getMyPointsRewards = async (): Promise<{
}
};
export const claimMyReward = async (poolKey: string): Promise<{
export const claimMyReward = async (poolKey: string, productId?: number): Promise<{
success: boolean;
description?: string;
remaining_rewards?: number;
@@ -978,7 +978,9 @@ export const claimMyReward = async (poolKey: string): Promise<{
error?: string;
}> => {
try {
const { data } = await apiClient.post(`${V1}/points/claim`, { pool_key: poolKey });
const body: { pool_key: string; product_id?: number } = { pool_key: poolKey };
if (productId !== undefined) body.product_id = productId;
const { data } = await apiClient.post(`${V1}/points/claim`, body);
return {
success: true,
description: data.description,