multiple payout page and small fixes
This commit is contained in:
@@ -120,12 +120,12 @@ class AccountProvider extends ChangeNotifier {
|
||||
VerificationResponse confirmation,
|
||||
) {
|
||||
final ttlSeconds = confirmation.ttlSeconds != 0 ? confirmation.ttlSeconds : pending.ttlSeconds;
|
||||
final destination = confirmation.target.isNotEmpty ? confirmation.target : pending.destination;
|
||||
final target = confirmation.target.isNotEmpty ? confirmation.target : pending.target;
|
||||
final cooldownSeconds = confirmation.cooldownSeconds;
|
||||
|
||||
return pending.copyWith(
|
||||
ttlSeconds: ttlSeconds,
|
||||
destination: destination,
|
||||
target: target,
|
||||
cooldownSeconds: cooldownSeconds > 0 ? cooldownSeconds : null,
|
||||
cooldownUntil: cooldownSeconds > 0 ? DateTime.now().add(confirmation.cooldownDuration) : null,
|
||||
clearCooldown: cooldownSeconds <= 0,
|
||||
|
||||
Reference in New Issue
Block a user