fix walletTypeToResolveType
This commit is contained in:
parent
9932a782b2
commit
506bb364d1
|
@ -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}`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue