Ay Pe Why
This commit is contained in:
@@ -12,7 +12,8 @@ export function formatSalary(text) {
|
||||
if (text == null) return "—";
|
||||
|
||||
try {
|
||||
var millions = (parseInt(text, 10) / 1000000).toFixed(2);
|
||||
//vah=r millions = (parseInt(text, 10) / 1000000).toFixed(2);
|
||||
let millions = Math.round(parseInt(text, 10) / 1000000);
|
||||
return `$${millions} million`;
|
||||
} catch (e) {
|
||||
return "Unknown format"
|
||||
|
||||
Reference in New Issue
Block a user