Files
hash-wallet/lib
09da422470 Fix one swap tap creating multiple trades (#3709)
TradeIsCreating was only set deep inside createTrade's provider loop,
after several awaits, so the swap button stayed tappable while the
first call was still running and every extra tap started another
trade. createTrade also had no in-progress check of its own.

Now createTrade returns early if a trade is already being created,
sets TradeIsCreating synchronously before the first await, and resets
the state in a finally block so the button is usable again after
success, failure or an unexpected exception. The
ConcurrentModificationError retry now awaits the inner call instead of
re-entering createTrade, so it is not blocked by the new guard.


Claude-Session: https://claude.ai/code/session_016HdqYnWEiqnBvmvqCBQgjE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 13:14:15 +02:00
..
2026-10-06 20:55:38 +02:00
2026-10-09 12:41:02 +02:00
2026-09-22 16:46:42 +02:00
2026-08-26 01:01:52 +08:00
2026-10-04 13:22:05 +02:00
2026-10-06 20:55:38 +02:00
2026-10-04 13:22:05 +02:00
2026-10-10 02:13:08 +02:00
2026-08-28 15:49:51 +08:00
2026-09-22 16:46:42 +02:00