feat: update app workflows and permissions
This commit is contained in:
@ -185,9 +185,12 @@ final class CooperationAcquirerViewModel {
|
||||
|
||||
private func startCommissionSmsTimer() {
|
||||
commissionSmsTimerTask?.cancel()
|
||||
commissionSmsCountdown = 60
|
||||
notifyStateChange()
|
||||
commissionSmsTimerTask = Task { [weak self] in
|
||||
guard let self else { return }
|
||||
for second in stride(from: 60, through: 1, by: -1) {
|
||||
try? await Task.sleep(nanoseconds: 1_000_000_000)
|
||||
for second in stride(from: 59, through: 1, by: -1) {
|
||||
if Task.isCancelled { return }
|
||||
commissionSmsCountdown = second
|
||||
notifyStateChange()
|
||||
|
||||
Reference in New Issue
Block a user