Skip to content

Commit 898d401

Browse files
committed
Fix ExtensionValue erroring on Boolean value
1 parent 6d748d3 commit 898d401

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Plan/react/dashboard/src/components/extensions/ExtensionCard.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import ColoredText from "../text/ColoredText";
1111
import {Link} from "react-router";
1212
import FormattedTime from "../text/FormattedTime.jsx";
1313
import FormattedDate from "../text/FormattedDate.jsx";
14+
import {useTranslation} from "react-i18next";
1415

1516
export const ExtensionCardWrapper = ({extension, children}) => {
1617
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
@@ -88,6 +89,7 @@ export const ExtensionValueTableCell = ({data}) => {
8889
}
8990

9091
const ExtensionValue = ({data}) => {
92+
const {t} = useTranslation();
9193
const color = data.description.icon.colorClass;
9294
const colorClass = color?.startsWith("col-") ? color : "col-" + color;
9395
const icon = [data.description.icon.familyClass, data.description.icon.iconName];

0 commit comments

Comments
 (0)