Fix NaN% for empty account

This commit is contained in:
Manav Rathi
2025-02-19 10:31:34 +05:30
parent a1fda786f5
commit d21ea0a5a6

View File

@@ -263,7 +263,7 @@ const ManageML: React.FC<ManageMLProps> = ({ mlStatus, onDisableML }) => {
}
// Show processed as percentages instead of potentially confusing counts.
const processed = `${Math.round((100 * nSyncedFiles) / nTotalFiles)}%`;
const processed = `${nTotalFiles ? Math.round((100 * nSyncedFiles) / nTotalFiles) : 100}%`;
const confirmDisableML = () =>
showMiniDialog({