setTimeout takes function

This commit is contained in:
Elizabeth Byerly 2019-05-20 16:07:39 -04:00
parent a6369c79e3
commit a9f4759f41

View file

@ -77,7 +77,7 @@ function _getCurrencyData (callback) {
if (hour > 8 && hour < 17) {
delay = 100; // add 100ms slowdown
}
setTimeout(callback(data), delay);
setTimeout(() => callback(data), delay);
}
/**