fix(core): use correct pow
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@mojoio/tink', | ||||
|   version: '3.1.3', | ||||
|   version: '3.1.4', | ||||
|   description: 'an unofficial api abstraction for tink.com' | ||||
| } | ||||
|   | ||||
| @@ -16,7 +16,7 @@ export const getNormalizedAmount = (scaledArg?: ITinkScaledAmount) => { | ||||
|     return null; | ||||
|   } | ||||
|   return { | ||||
|     amount: parseInt(scaledArg.value.unscaledValue) * Math.pow(10, -(parseInt(scaledArg.value.scale))), | ||||
|     value: parseInt(scaledArg.value.unscaledValue) * Math.pow(10, -(parseInt(scaledArg.value.scale))), | ||||
|     currency: 'EUR' | ||||
|   }; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user