Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Update percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillaumat committed Jan 23, 2021
1 parent 0abfcf1 commit 1ca3386
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logic/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ async function changeName(name) {

changeNameStatus.percent = 1; // eslint-disable-line no-magic-numbers

changeNameStatus.percent = 40; // eslint-disable-line no-magic-numbers
changeNameStatus.percent = 30; // eslint-disable-line no-magic-numbers

try {
// get user data
const user = await diskLogic.readUserFile();
changeNameStatus.percent = 60; // eslint-disable-line no-magic-numbers

// update user name
user.name = name;
Expand Down

0 comments on commit 1ca3386

Please sign in to comment.