parsify-dev / cashify

💸 Lightweight currency conversion library, successor of money.js
MIT License
402 stars 19 forks source link

If `from equals to, return 100% directly #12

Closed hotvulcan closed 4 years ago

hotvulcan commented 4 years ago

this fix when base === from === to, throw 'rates object does not contain either from or to currency!'

xxczaki commented 4 years ago

Thanks, added in afef56c740b77bdb17db8da7908737777dc7f32c :smile: