feat: some stuff
This commit is contained in:
parent
bfe7dbbca9
commit
ffa134a879
@ -14,7 +14,11 @@ function formatUnit(unit: string, amount: number) {
|
||||
if (amount > 1 && unitsOfMeasure[unitKey].plural !== undefined) {
|
||||
return unitsOfMeasure[unitKey].plural;
|
||||
}
|
||||
return unitsOfMeasure[unitKey].short;
|
||||
if (unitKey !== "cup") {
|
||||
return unitsOfMeasure[unitKey].short;
|
||||
}
|
||||
|
||||
return unitKey.toString();
|
||||
} else {
|
||||
return unit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user