diff --git a/src/types/qfTypes.ts b/src/types/qfTypes.ts index 1a9cc1cba..cede70c62 100644 --- a/src/types/qfTypes.ts +++ b/src/types/qfTypes.ts @@ -2,12 +2,12 @@ import { Field, Float, ObjectType } from 'type-graphql'; @ObjectType() export class EstimatedMatching { - @Field(type => Float) - projectDonationsSqrtRootSum: number; + @Field(type => Float, { nullable: true }) + projectDonationsSqrtRootSum?: number; - @Field(type => Float) - allProjectsSum: number; + @Field(type => Float, { nullable: true }) + allProjectsSum?: number; - @Field(type => Float) - matchingPool: number; + @Field(type => Float, { nullable: true }) + matchingPool?: number; }