Place longer text in description instead of title

This commit is contained in:
regalijan 2023-10-19 16:50:47 -04:00
parent 1464c92093
commit 2964beb998
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -167,11 +167,11 @@ export default function () {
if (!itemReq.ok) { if (!itemReq.ok) {
toast({ toast({
description: ((await itemReq.json()) as { error: string }).error, description: "Failed to load item with id " + itemId,
duration: 10000, duration: 10000,
isClosable: true, isClosable: true,
status: "error", status: "error",
title: "Failed to load item with id " + itemId, title: ((await itemReq.json()) as { error: string }).error,
}); });
} else { } else {
const itemData: { [k: string]: any } = await itemReq.json(); const itemData: { [k: string]: any } = await itemReq.json();