ARK-Builders / ARK-Rate

ARK Rate is a tiny convenience app for quickly converting multiple currencies at the same time
https://www.ark-builders.dev/apps/rate/
MIT License
2 stars 2 forks source link

Fix create new pair instead of updating current one #99

Closed hieuwu closed 4 months ago

hieuwu commented 4 months ago

Summary

Currently, when create new pair, then update it, the app creates new pairs instead of current one. It should be an update operation Steps to reproduce:

  1. Create new pair
  2. Long click on the pair
  3. Change currency
  4. Press save

Changes

Instead of using default Id as 0, use selected pairId to update existing pair

Before

https://github.com/ARK-Builders/ARK-Rate/assets/43868345/ac020dbe-105b-4179-89f7-07faa4347d29

After

https://github.com/ARK-Builders/ARK-Rate/assets/43868345/473af9fc-8bb2-40cc-9afc-c07f7c865b0a