fix format
This commit is contained in:
@@ -28,7 +28,7 @@ const calcAverage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const format = price => {
|
const format = price => {
|
||||||
return price.toFixed(2);
|
return (price ?? 0).toFixed(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
const average = ref();
|
const average = ref();
|
||||||
|
|||||||
Reference in New Issue
Block a user