mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
actually use price interval
This commit is contained in:
parent
7b160b9a55
commit
bd5a0c1631
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class PriceAPI {
|
||||||
{required String baseCurrency}) async {
|
{required String baseCurrency}) async {
|
||||||
final now = DateTime.now();
|
final now = DateTime.now();
|
||||||
if (_lastUsedBaseCurrency != baseCurrency ||
|
if (_lastUsedBaseCurrency != baseCurrency ||
|
||||||
now.difference(_lastCalled).inSeconds > 0) {
|
now.difference(_lastCalled) > refreshIntervalDuration) {
|
||||||
_lastCalled = now;
|
_lastCalled = now;
|
||||||
_lastUsedBaseCurrency = baseCurrency;
|
_lastUsedBaseCurrency = baseCurrency;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue