Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlyhel committed Jul 4, 2024
1 parent ba7eb28 commit 1bbf192
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/hydrogen/src/cart/createCartHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function createCartHandler<TCustomMethods extends CustomMethodsBase>(
updateGiftCardCodes: async (giftCardCodes, optionalParams) => {
return cartId || optionalParams?.cartId
? await cartGiftCardCodesUpdateDefault(mutateOptions)(
giftCardCodes,
giftCardCodes,
optionalParams,
)
: await cartCreate({giftCardCodes}, optionalParams);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {describe, it, expect} from 'vitest';
import {CART_ID, mockCreateStorefrontClient} from '../cart-test-helper';
import {cartGiftCardCodesUpdateDefault} from './cartGiftCardCodeUpdateDefault';


describe('cartGiftCardCodesUpdateDefault', () => {
it('should return a default cart discount code update implementation', async () => {
const cartGiftCardCodes = cartGiftCardCodesUpdateDefault({
Expand Down

0 comments on commit 1bbf192

Please sign in to comment.