mirror of
https://github.com/HeyPuter/puter.git
synced 2026-04-26 17:26:57 -05:00
fix: build error
This commit is contained in:
@@ -2733,8 +2733,8 @@ window.get_profile_picture = async function(username){
|
||||
window.format_with_units = (num, { mulUnits, divUnits, precision = 3 }) => {
|
||||
if ( num === 0 ) return "0";
|
||||
|
||||
const mulUnits = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"];
|
||||
const divUnits = ["m", "µ", "n", "p", "f", "a", "z", "y"];
|
||||
mulUnits = mulUnits ?? ["", "K", "M", "G", "T", "P", "E", "Z", "Y"];
|
||||
divUnits = divUnits ?? ["m", "µ", "n", "p", "f", "a", "z", "y"];
|
||||
|
||||
const abs = Math.abs(num);
|
||||
let exp = Math.floor(Math.log10(abs) / 3);
|
||||
|
||||
Reference in New Issue
Block a user