From 4c0f0fd06dd9800fef58323bb86021eacf955013 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Fri, 11 Dec 2020 14:56:30 +0100 Subject: [PATCH] bug with projectAllowance --- src/resolvers/cargoBikeResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {