From f4b8364abcd41ad2ebb15cac19bf581b57fbba6b Mon Sep 17 00:00:00 2001 From: Eddie Wang Date: Thu, 11 Jan 2018 02:08:36 -0500 Subject: [PATCH] Stop Timer when Swap Order is Received (#791) --- common/sagas/swap/orders.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/sagas/swap/orders.ts b/common/sagas/swap/orders.ts index 38786d7c..3a4d4843 100644 --- a/common/sagas/swap/orders.ts +++ b/common/sagas/swap/orders.ts @@ -301,6 +301,9 @@ export function* shapeshiftOrderTimeRemaining(): SagaIterator { yield put(showNotification('danger', ORDER_TIMEOUT_MESSAGE, Infinity)); } break; + case 'received': + yield put(stopOrderTimerSwap()); + break; case 'complete': yield put(stopPollShapeshiftOrderStatus()); yield put(stopLoadShapeshiftRatesSwap());