chore(ui): tidy after rebase

This commit is contained in:
psychedelicious
2024-03-10 19:54:50 +11:00
parent 8d79ce94aa
commit 3abc182b44
4 changed files with 131 additions and 142 deletions

View File

@ -1,13 +0,0 @@
export const calculateStepPercentage = (step: number, total_steps: number, order: number) => {
if (total_steps === 0) {
return 0;
}
// we add one extra to step so that the progress bar will be full when denoise completes
if (order === 2) {
return Math.floor((step + 1 + 1) / 2) / Math.floor((total_steps + 1) / 2);
}
return (step + 1 + 1) / (total_steps + 1);
};