From 73753b0689871caf8106343c98ec2a54c9fdf3bf Mon Sep 17 00:00:00 2001 From: Saimon Shaplygin Date: Sun, 2 Jun 2024 07:21:32 +0200 Subject: [PATCH] fix: add new profile --- src/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/main.js b/src/scripts/main.js index af0ccb8..51a7b01 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -134,7 +134,7 @@ modHeader.factory('dataSource', function($mdToast) { }; dataSource.createProfile = function() { - const index = 1; + let index = 1; while (isExistingProfileTitle_('Profile ' + index)) { ++index; }