fix: utilities format and change height func
This commit is contained in:
parent
ab73b7ef03
commit
07d9509db7
|
@ -60,11 +60,9 @@ export const formatToFixed4 = (value: string) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getHeightPercentages = (amountOfElements: number) => {
|
export const getHeightPercentages = (amountOfElements: number) => {
|
||||||
let percentages
|
let percentages = 100
|
||||||
|
|
||||||
if (amountOfElements === 1) {
|
if (amountOfElements > 1) {
|
||||||
percentages = 100
|
|
||||||
} else {
|
|
||||||
percentages = 100 / amountOfElements
|
percentages = 100 / amountOfElements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue