diff --git a/src/Currency.mjs b/src/Currency.mjs index d0e2c35..51b20b2 100644 --- a/src/Currency.mjs +++ b/src/Currency.mjs @@ -64,7 +64,7 @@ export class Currency { let finalValue if(typeof value === 'number') { finalValue = value - } else if(typeof value === 'object' && value.value && value.currency) { + } else if(typeof value === 'object' && !isNil(value.value) && value.currency) { finalValue = value.value finalConfig.currency = value.currency }