Skip to content

Commit

Permalink
chore: Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Feb 13, 2025
1 parent 8713b44 commit 5633fcb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kDrive/UI/Controller/Menu/ParameterTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,15 @@ class ParameterTableViewController: BaseGroupedTableViewController {
private func checkMykSuiteEnabledAndRefresh() {
Task { @MainActor in
@InjectService var mykSuiteStore: MyKSuiteStore
let mykSuiteEnabled: Bool
let packId = DrivePackId(rawValue: driveFileManager.drive.pack.name)
let packIsMykSuite: Bool
if await mykSuiteStore.getMyKSuite(id: accountManager.currentUserId) != nil,
packId == .myKSuite || packId == .myKSuitePlus {
mykSuiteEnabled = true
packIsMykSuite = true
} else {
mykSuiteEnabled = false
packIsMykSuite = false
}

self.mykSuiteEnabled = mykSuiteEnabled
self.mykSuiteEnabled = packIsMykSuite
self.tableView.reloadData()
}
}
Expand Down

0 comments on commit 5633fcb

Please sign in to comment.