fix walletTypeToResolveType

This commit is contained in:
k00b 2024-08-18 14:57:50 -05:00
parent 9932a782b2
commit 506bb364d1
1 changed files with 1 additions and 1 deletions

View File

@ -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}`
}