🐛 fix:: Update localization files and improve display logic for inventory handling

This commit is contained in:
web@ppanel
2025-12-29 08:08:31 +00:00
parent 2316609c82
commit 83d821a2dc
6 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ export function Display<T extends number | undefined | null>({
if (
["traffic", "trafficSpeed", "number"].includes(type) &&
unlimited &&
!value
(value === 0 || value === null || value === undefined)
) {
return t("unlimited");
}
@@ -42,7 +42,7 @@ export function Display<T extends number | undefined | null>({
}
if (type === "number") {
return value ? value.toString() : "0";
return value !== null && value !== undefined ? value.toString() : "0";
}
return "0";
@@ -454,9 +454,6 @@ export default function SubscribeForm<T extends Record<string, any>>({
value={field.value}
/>
</FormControl>
<FormDescription>
{t("form.inventoryDescription")}
</FormDescription>
<FormMessage />
</FormItem>
)}