fix(dashboard): Set correct method value on promotion (#9610)
<img width="1441" alt="Screenshot 2024-10-16 at 14 17 05" src="https://github.com/user-attachments/assets/7a2e2196-5ca6-4532-9bf0-a4b693c6babc"> RESOLVES CC-601
This commit is contained in:
@@ -28,11 +28,11 @@ export const usePromotionTableColumns = () => {
|
||||
|
||||
columnHelper.display({
|
||||
id: "method",
|
||||
header: () => <TextHeader text={t("promotions.fields.campaign")} />,
|
||||
header: () => <TextHeader text={t("promotions.fields.method")} />,
|
||||
cell: ({ row }) => {
|
||||
const text = row.original.is_automatic
|
||||
? "Automatic"
|
||||
: "Promotion Code"
|
||||
? t("promotions.form.method.automatic.title")
|
||||
: t("promotions.form.method.code.title")
|
||||
|
||||
return <TextCell text={text} />
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user