mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +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 {
|
||||
final now = DateTime.now();
|
||||
if (_lastUsedBaseCurrency != baseCurrency ||
|
||||
now.difference(_lastCalled).inSeconds > 0) {
|
||||
now.difference(_lastCalled) > refreshIntervalDuration) {
|
||||
_lastCalled = now;
|
||||
_lastUsedBaseCurrency = baseCurrency;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue