aVolpe / cotizacion

Portal to find current exchange rates in Paraguay
https://cotizaciones.volpe.com.py
MIT License
12 stars 6 forks source link

fix: Load with default currency #51

Closed aVolpe closed 2 years ago

aVolpe commented 2 years ago

When we use a URL with a default currency (for example ?moneda=ARG) we need to set the current currency on the store, this is done in the LatestExchange component, on mount it check the url and set the store state, but, because a bug in the store, the current currency wasn't updated, so we were loading the correct currency, but we are not showing it becaues the current was current.

This commit fixes the condition so when we load the requested currency the current currency is updated.