diff --git a/src/resolvers/cargoBikeResolver.ts b/src/resolvers/cargoBikeResolver.ts index 47894db..e6e067e 100644 --- a/src/resolvers/cargoBikeResolver.ts +++ b/src/resolvers/cargoBikeResolver.ts @@ -232,7 +232,7 @@ export default { }, InsuranceData: { projectAllowance: (parent: any): any => { - return (parent as string)?.replace(/€\$/, ''); + return (parent.projectAllowance as string)?.replace(/€\$/, ''); } }, Mutation: {