democratizedspace / democratizedspace/dspace

more robust unit system

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4
Forks
2
Avg merge
5h 34m
Merged PRs (30d)
4

Description

Some items have units:

```
{
"id": "36",
"name": "kevlar shock cord",
"description": "Perfect for model rocketry. Used to attach the rocket body to the parachute.",
"image": "/assets/kevlar_cord.jpg",
"price": "0.3 dUSD",
"unit": " m"
},
```

The unit string is prefixed with a space if the unit should be displayed as such. Also, currently units can only be placed after the item amount, not before (but there may be edge cases where this should be supported too).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.