From af936940a09115a7a50b7086b284346ea273e0ba Mon Sep 17 00:00:00 2001 From: Beef Date: Mon, 16 Jan 2023 08:11:46 +0000 Subject: [PATCH] [UI > PluginCard] Fix crash with icon --- src/def.d.ts | 4 ++-- src/ui/settings/components/PluginCard.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/def.d.ts b/src/def.d.ts index ac1641a..3c09e80 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -46,8 +46,8 @@ interface PluginManifest { main: string; hash: string; // Vendor-specific field, contains our own data - vendetta: { - icon: string; + vendetta?: { + icon?: string; }; } diff --git a/src/ui/settings/components/PluginCard.tsx b/src/ui/settings/components/PluginCard.tsx index ff7e706..d45e478 100644 --- a/src/ui/settings/components/PluginCard.tsx +++ b/src/ui/settings/components/PluginCard.tsx @@ -52,7 +52,7 @@ export default function PluginCard({ plugin }: PluginCardProps) { i.name).join(", ")}`} - leading={} + leading={} trailing={