Compare commits

..

2 Commits

Author SHA1 Message Date
4301a0337c 3.1.4 2022-10-29 19:15:30 +02:00
723833d9bb fix(core): use correct pow 2022-10-29 19:15:30 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/tink",
"version": "3.1.3",
"version": "3.1.4",
"private": false,
"description": "an unofficial api abstraction for tink.com",
"main": "dist_ts/index.js",

View File

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

View File

@ -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'
};
};