Skip to content

Commit

Permalink
Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bendvc committed Mar 11, 2024
1 parent 0aa3c08 commit c6349d9
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,15 @@ export const usePromoCode = () => {

const submitPromoCode = async ({code}) => {
try {
await applyPromoCodeMutation.mutateAsync(
{
parameters: {basketId: basket?.basketId},
body: {
code
}
await applyPromoCodeMutation.mutateAsync({
parameters: {basketId: basket?.basketId},
body: {
code
}
)
})

form.reset({code: ''})

toast({
title: formatMessage({
defaultMessage: 'Promotion applied',
Expand Down

0 comments on commit c6349d9

Please sign in to comment.