Skip to content

Commit 270411d

Browse files
authored
fix direct grants payout table (#3807)
1 parent 6f53422 commit 270411d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/data-layer/src/data-layer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,13 +831,13 @@ export class DataLayer {
831831
roundId: string;
832832
projectId: string;
833833
}): Promise<RoundApplicationPayout> {
834-
const response: { round: RoundApplicationPayout } = await request(
834+
const response: { rounds: RoundApplicationPayout[] } = await request(
835835
this.gsIndexerEndpoint,
836836
getPayoutsByChainIdRoundIdProjectId,
837837
args,
838838
);
839839

840-
return response.round;
840+
return response.rounds[0];
841841
}
842842

843843
/**

packages/round-manager/src/features/round/usePayouts.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export function usePayouts(args: {
3737
let mappedPayouts = payouts.map((payout) => {
3838
return {
3939
applicationIndex: Number(result.applications[0].id),
40-
amount: payout.amount,
40+
amount: Number(payout.amount).toLocaleString("fullwide", {
41+
useGrouping: false,
42+
}),
4143
createdAt: payout.timestamp,
4244
txnHash: payout.transactionHash,
4345
tokenAddress: payout.tokenAddress,

0 commit comments

Comments
 (0)