Skip to content

Commit

Permalink
missed one of them
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Apr 11, 2024
1 parent 461fa81 commit cde0ecf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/screens/Profile/Header/ProfileHeaderLabeler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ import {useLikeMutation, useUnlikeMutation} from '#/state/queries/like'
import {usePreferencesQuery} from '#/state/queries/preferences'
import {useSession} from '#/state/session'
import {useAnalytics} from 'lib/analytics/analytics'
import {playHaptic} from 'lib/haptics'
import {useHaptics} from 'lib/haptics'
import {useProfileShadow} from 'state/cache/profile-shadow'
import {useHapticsDisabled} from 'state/preferences/disable-haptics'
import {ProfileMenu} from '#/view/com/profile/ProfileMenu'
import * as Toast from '#/view/com/util/Toast'
import {atoms as a, tokens, useTheme} from '#/alf'
Expand Down Expand Up @@ -65,7 +64,7 @@ let ProfileHeaderLabeler = ({
const {currentAccount, hasSession} = useSession()
const {openModal} = useModalControls()
const {track} = useAnalytics()
const isHapticsDisabled = useHapticsDisabled()
const playHaptic = useHaptics()
const cantSubscribePrompt = Prompt.usePromptControl()
const isSelf = currentAccount?.did === profile.did

Expand Down Expand Up @@ -95,7 +94,7 @@ let ProfileHeaderLabeler = ({
return
}
try {
playHaptic(isHapticsDisabled)
playHaptic()

if (likeUri) {
await unlikeMod({uri: likeUri})
Expand All @@ -116,7 +115,7 @@ let ProfileHeaderLabeler = ({
)
logger.error(`Failed to toggle labeler like`, {message: e.message})
}
}, [labeler, isHapticsDisabled, likeUri, unlikeMod, track, likeMod, _])
}, [labeler, playHaptic, likeUri, unlikeMod, track, likeMod, _])

const onPressEditProfile = React.useCallback(() => {
track('ProfileHeader:EditProfileButtonClicked')
Expand Down

0 comments on commit cde0ecf

Please sign in to comment.