sklic not showing right contract meta
This commit is contained in:
parent
afaefa8a9d
commit
7c7defb6c5
|
|
@ -101,18 +101,6 @@ const formatMetaValue = (entry) => {
|
||||||
if (typeof value === "number") {
|
if (typeof value === "number") {
|
||||||
return formatMetaNumber(value);
|
return formatMetaNumber(value);
|
||||||
}
|
}
|
||||||
if (typeof value === "string") {
|
|
||||||
// Try number
|
|
||||||
const n = parseFloat(value.replace(",", "."));
|
|
||||||
if (!isNaN(n)) {
|
|
||||||
return formatMetaNumber(n);
|
|
||||||
}
|
|
||||||
// Try date
|
|
||||||
const d = new Date(value);
|
|
||||||
if (!isNaN(d.getTime())) {
|
|
||||||
return formatMetaDate(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return String(value);
|
return String(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user