From a45d754e7a19617dd2b6860f40baabf2ecc80421 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Tue, 2 Mar 2021 12:23:36 +0100 Subject: [PATCH] roundPercent --- www/app/controllers/account.js | 4 ++++ www/app/templates/account.hbs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/www/app/controllers/account.js b/www/app/controllers/account.js index 44febb9..c952d23 100644 --- a/www/app/controllers/account.js +++ b/www/app/controllers/account.js @@ -10,6 +10,10 @@ export default Ember.Controller.extend({ if (!percent) { return 0; } + + if(percent>100){ + return 100; + } return percent; } }) diff --git a/www/app/templates/account.hbs b/www/app/templates/account.hbs index 5100098..280c8a4 100644 --- a/www/app/templates/account.hbs +++ b/www/app/templates/account.hbs @@ -33,7 +33,7 @@