Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Renatavl committed Oct 19, 2024
1 parent 74a72d9 commit 56000af
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/containers/offer-details/offer-carousel/OfferCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { itemsLoadLimit } from '~/containers/offer-details/offer-carousel/OfferC
import { useAppDispatch, useAppSelector } from '~/hooks/use-redux'
import { setField } from '~/redux/features/editProfileSlice'
import { openAlert } from '~/redux/features/snackbarSlice'
import { snackbarVariants } from '~/constants'
import { snackbarVariants as variants } from '~/constants'
import { getErrorKey } from '~/utils/get-error-key'
import { useToggleBookmark } from '~/utils/toggle-bookmark'
import { useCallback } from 'react'
Expand Down Expand Up @@ -70,10 +70,7 @@ const OfferCarousel = ({ offer }: OfferCarouselProps) => {

const handleResponseError = (error?: ErrorResponse) => {
dispatch(
openAlert({
severity: snackbarVariants.error,
message: getErrorKey(error)
})
openAlert({ severity: variants.error, message: getErrorKey(error) })
)
}

Expand Down

0 comments on commit 56000af

Please sign in to comment.