From ffceac9fb7c78c232008c2dac9ba3f9439c0339e Mon Sep 17 00:00:00 2001 From: andrewHEguardian <114918544+andrewHEguardian@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:47:46 +0000 Subject: [PATCH] update discount storybook mock --- .../cancellationSaves/digipack/DigiSubSaves.stories.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/mma/cancel/cancellationSaves/digipack/DigiSubSaves.stories.tsx b/client/components/mma/cancel/cancellationSaves/digipack/DigiSubSaves.stories.tsx index b990bf8b0..26301e025 100644 --- a/client/components/mma/cancel/cancellationSaves/digipack/DigiSubSaves.stories.tsx +++ b/client/components/mma/cancel/cancellationSaves/digipack/DigiSubSaves.stories.tsx @@ -42,7 +42,7 @@ export const EligibleForDiscount: StoryObj = { }, parameters: { msw: [ - rest.post('/api/discounts/check-eligibility', (_req, res, ctx) => { + rest.post('/api/discounts/preview-discount', (_req, res, ctx) => { return res(ctx.json({ valid: true })); }), ], @@ -61,7 +61,7 @@ export const IneligibleForDiscount: StoryObj = { }, }, msw: [ - rest.post('/api/discounts/check-eligibility', (_req, res, ctx) => { + rest.post('/api/discounts/preview-discount', (_req, res, ctx) => { return res(ctx.json({ valid: false })); }), ],