add area carpet fixture. Add carpet roll calculator test. refactor carpet roll as own component. add icons.
This commit is contained in:
@ -45,7 +45,7 @@ export type AreaRugProduct = Product & {
|
||||
type: "lumber"
|
||||
}
|
||||
|
||||
export function productPriceFor(product : Product, dimensions: dimensions_t, damage: number): number {
|
||||
export function productPriceFor(product : Product, dimensions: dimensions_t, damage: number = 0): number {
|
||||
if (Number.isNaN(damage)) damage = 0;
|
||||
const dim = matchDimensions(dimensions, product.dimensions);
|
||||
return (
|
||||
|
Reference in New Issue
Block a user