Skip to content

Commit

Permalink
feat: add quantity localization for detailed view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Jan 5, 2023
1 parent e6b7239 commit 1eeca88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/blocks/UnitDetailedView.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ const UnitDetailedView = ({
{value.toString()}
</a>
);
} else if ('quantity'.includes(key)) {
return value.toLocaleString(navigator.language);
} else {
return value.toString();
}
Expand Down

0 comments on commit 1eeca88

Please sign in to comment.