Stop Timer when Swap Order is Received (#791)

This commit is contained in:
Eddie Wang 2018-01-11 02:08:36 -05:00 committed by Daniel Ternyak
parent db4dc516e2
commit f4b8364abc
1 changed files with 3 additions and 0 deletions

View File

@ -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());