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:
Riqwan Thamir
2024-10-16 12:31:39 +00:00
committed by GitHub
parent ea5bff9034
commit 449168578d
3 changed files with 8 additions and 5 deletions
@@ -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} />
},