Skip to content

Commit

Permalink
Fixed analyze problem
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed May 24, 2020
1 parent 19fe35d commit 6ff1158
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ String formatNumber(double number) {
symbol = '';
}

if (resultNumber.endsWith('.0')) resultNumber = resultNumber.replaceAll('.0', '');
if (resultNumber.endsWith('.0')) {
resultNumber = resultNumber.replaceAll('.0', '');
}

return resultNumber + symbol;
}

0 comments on commit 6ff1158

Please sign in to comment.