fix(admin-ui): Remove t() on product.status update (#5394)
* fix(admin-ui): Remove t() on product.status update * Create tidy-games-drum.md
This commit is contained in:
@@ -48,10 +48,7 @@ const useProductActions = (product: Product) => {
|
||||
? t("product-table-unpublish", "Unpublish")
|
||||
: t("product-table-publish", "Publish"),
|
||||
onClick: () => {
|
||||
const newStatus =
|
||||
product.status === "published"
|
||||
? t("product-table-draft", "draft")
|
||||
: t("product-table-published", "published")
|
||||
const newStatus = product.status === "published" ? "draft" : "published"
|
||||
updateProduct.mutate(
|
||||
{
|
||||
status: newStatus,
|
||||
|
||||
Reference in New Issue
Block a user