Skip to content

Commit ca401b5

Browse files
authored
Fix: Hide Floatbar on Missing Min / Max Values (#360)
* fix: hide floatbar on missing min max * chore: run format
1 parent ff0c72c commit ca401b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/components/inventory/selected_item_info.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,12 @@ export class SelectedItemInfo extends FloatElement {
156156
}
157157

158158
renderFloatBar(): TemplateResult<1> {
159-
if (!this.itemInfo || !this.itemInfo.floatvalue) {
159+
if (
160+
!this.itemInfo ||
161+
!this.itemInfo.floatvalue ||
162+
this.itemInfo.min === undefined ||
163+
this.itemInfo.max === undefined
164+
) {
160165
return html``;
161166
}
162167

0 commit comments

Comments
 (0)