Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Besson <bruno.besson@gmail.com>
  • Loading branch information
cbeauchesne and brunobesson authored Mar 26, 2021
1 parent 35677ca commit 5a09fe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/apis/c2c/DocumentService.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DocumentService.prototype.fullDownload = function (params, limit, onProgress) {
const result = [];

const download = (offset = 0) => {
this.getAll({ ...params, offset: offset, limit: API_MAX_LIMIT })
this.getAll({ ...params, offset, limit: API_MAX_LIMIT })
.then(({ data }) => {
for (const document of data.documents) {
result.push(document);
Expand Down
4 changes: 2 additions & 2 deletions src/views/portals/outings-stats/OutingsStatsPart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ const getOutingMonth = function (outing) {
const formatLengthInMeter = function (length) {
if (length < 9999) {
return `${length} m`;
return `${length}\u00a0m`;
} else {
length = Math.round(length / 1000);
return `${length} km`;
return `${length}\u00a0km`;
}
};
Expand Down

0 comments on commit 5a09fe2

Please sign in to comment.