From 2fdc189bbf2e491023e4ea95856e063d294637a4 Mon Sep 17 00:00:00 2001 From: Kristofer Date: Mon, 25 Sep 2023 15:01:46 +0200 Subject: [PATCH] Make sure attest data has right format --- .../components/CreateAttestationsDialog.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/pages/PeriodDetails/components/CreateAttestationsDialog.tsx b/packages/frontend/src/pages/PeriodDetails/components/CreateAttestationsDialog.tsx index 2d922653f..12eb61933 100644 --- a/packages/frontend/src/pages/PeriodDetails/components/CreateAttestationsDialog.tsx +++ b/packages/frontend/src/pages/PeriodDetails/components/CreateAttestationsDialog.tsx @@ -58,14 +58,14 @@ export function CreateAttestationsDialog({ csvObjects.push({ period: periodId, username: attestation.users_username, - received_score: attestation.total_received_praise_score, - given_score: attestation.total_given_praise_score, - top_10_receiver: attestation.top_10_receiver, - top_50_receiver: attestation.top_50_receiver, - top_100_receiver: attestation.top_100_receiver, - top_10_giver: attestation.top_10_giver, - top_50_giver: attestation.top_50_giver, - top_100_giver: attestation.top_100_giver, + received_score: attestation.total_received_praise_score.toString(), + given_score: attestation.total_given_praise_score.toString(), + top_10_receiver: attestation.top_10_receiver.toString(), + top_50_receiver: attestation.top_50_receiver.toString(), + top_100_receiver: attestation.top_100_receiver.toString(), + top_10_giver: attestation.top_10_giver.toString(), + top_50_giver: attestation.top_50_giver.toString(), + top_100_giver: attestation.top_100_giver.toString(), recipient: attestation.users_identityEthAddress, }); }