fix(core): use correct pow
This commit is contained in:
parent
cb28b55617
commit
723833d9bb
@ -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'
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user