From 506bb364d15323bc07f27d55daca5633635c355d Mon Sep 17 00:00:00 2001 From: k00b Date: Sun, 18 Aug 2024 14:57:50 -0500 Subject: [PATCH] fix walletTypeToResolveType --- lib/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.js b/lib/wallet.js index d54a4f63..de24fca5 100644 --- a/lib/wallet.js +++ b/lib/wallet.js @@ -17,6 +17,6 @@ export function generateTypeDefName (walletField) { export function walletTypeToResolveType (walletType) { // wallet type is in UPPER_CASE but __resolveType requires PascalCase - const PascalCase = walletType.split('_').map(s => s[0].toUpperCase() + s.slice(1)).join() + const PascalCase = walletType.split('_').map(s => s[0].toUpperCase() + s.slice(1).toLowerCase()).join('') return `Wallet${PascalCase}` }