diff --git a/web/src/features/notifications/NotificationWrapper.tsx b/web/src/features/notifications/NotificationWrapper.tsx index 77920df..2549031 100644 --- a/web/src/features/notifications/NotificationWrapper.tsx +++ b/web/src/features/notifications/NotificationWrapper.tsx @@ -63,13 +63,12 @@ const Notifications: React.FC = () => { useNuiEvent("customNotify", (data) => { if (data.id && toast.isActive(data.id)) return; if (!data.icon) { - //@ts-expect-error because amazing types data.icon = data.type === "error" - ? "fa-circle-xmark" + ? "circle-xmark" : data.type === "success" - ? "fa-circle-check" - : "fa-circle-info"; + ? "circle-check" + : "circle-info"; } toast({ @@ -84,15 +83,14 @@ const Notifications: React.FC = () => { boxShadow="md" > - { + {data.icon && ( - } + )} {data.title && {data.title}} {data.description && {data.description}}