Merge pull request 'fix(analytics): drop false market verdict from per-object Sold % KpiCard (#1407)' (#1672) from fix/sold-pct-market-verdict-1407 into main
Some checks are pending
Deploy / changes (push) Waiting to run
Deploy / build-backend (push) Blocked by required conditions
Deploy / build-worker (push) Blocked by required conditions
Deploy / build-frontend (push) Blocked by required conditions
Deploy / deploy (push) Blocked by required conditions
Some checks are pending
Deploy / changes (push) Waiting to run
Deploy / build-backend (push) Blocked by required conditions
Deploy / build-worker (push) Blocked by required conditions
Deploy / build-frontend (push) Blocked by required conditions
Deploy / deploy (push) Blocked by required conditions
This commit is contained in:
commit
79c5068e96
1 changed files with 3 additions and 11 deletions
|
|
@ -148,17 +148,9 @@ export default function ObjectDrillInPage() {
|
||||||
label="Sold % (квартиры)"
|
label="Sold % (квартиры)"
|
||||||
value={apartments?.perc != null ? `${apartments.perc}` : "—"}
|
value={apartments?.perc != null ? `${apartments.perc}` : "—"}
|
||||||
unit="%"
|
unit="%"
|
||||||
delta={
|
hint={
|
||||||
apartments?.perc != null
|
apartments?.realised != null && apartments?.total != null
|
||||||
? {
|
? `${apartments.realised} из ${apartments.total} реализовано`
|
||||||
value:
|
|
||||||
apartments.perc >= 50
|
|
||||||
? "выше среднего рынка"
|
|
||||||
: apartments.perc >= 30
|
|
||||||
? "около среднего"
|
|
||||||
: "ниже среднего",
|
|
||||||
positive: apartments.perc >= 30,
|
|
||||||
}
|
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue