FIX#323: dont call trim on trim nonstring type value (#326)

This commit is contained in:
YJ 2018-09-19 02:38:24 -07:00 committed by Jaco Greeff
parent e2f4f2de71
commit a86bcc76cf

View File

@ -125,7 +125,7 @@ function valueToText (type: Param$Types, value: any, swallowError: boolean = tru
if (type === 'AccountId') {
return value && value.length
? accountToText(value.trim() as string)
? accountToText(value as string)
: unknown;
}