Skip to content

Commit

Permalink
Merge branch 'converstion-quota-dropbox-view' into converstion-quota-…
Browse files Browse the repository at this point in the history
…dropbox-view-chip
  • Loading branch information
adrien-coye committed Feb 10, 2025
2 parents e58c8b9 + decb0a0 commit 094f196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kDriveCore/Data/Models/Drive/Drive+Quota.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public final class DriveQuota: EmbeddedObject, Codable {

extension Drive {
var dropboxQuotaExceeded: Bool {
guard let quota, let dropbox = quota.dropbox else { return true }
guard let quota, let dropbox = quota.dropbox else { return false }
return dropbox.current ?? 0 >= dropbox.max
}

var sharedLinkQuotaExceeded: Bool {
guard let quota, let sharedLink = quota.sharedLink else { return true }
guard let quota, let sharedLink = quota.sharedLink else { return false }
return sharedLink.current ?? 0 >= sharedLink.max
}
}

0 comments on commit 094f196

Please sign in to comment.