add store review prompt based on number of sessions

This commit is contained in:
Ansh Nanda
2023-11-16 15:02:22 -08:00
parent 6aa865ea41
commit e522f69b1e
5 changed files with 108 additions and 0 deletions
+2
View File
@@ -8,6 +8,7 @@ import {
useProfileUnfollowMutation,
} from '#/state/queries/profile'
import {Shadow} from '#/state/cache/types'
import {incrementStoreReviewFollowed} from '#/lib/store-review'
export function FollowButton({
unfollowedType = 'inverted',
@@ -29,6 +30,7 @@ export function FollowButton({
}
try {
await followMutation.mutateAsync({did: profile.did})
incrementStoreReviewFollowed()
} catch (e: any) {
Toast.show(`An issue occurred, please try again.`)
}