Skip to content

Commit

Permalink
fix: remove prefetch achievement
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Oct 23, 2024
1 parent 667c3f7 commit 619aa82
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { apiClient } from "~/lib/api-fetch"
import { Chain } from "~/lib/chain"
import { cn } from "~/lib/utils"
import achievementAnimationUri from "~/lottie/achievement.lottie?url"
import type { ExtractBizResponse } from "~/models"

const absoluteachievementAnimationUri = new URL(achievementAnimationUri, import.meta.url).href
enum AchievementsActionIdMap {
Expand Down Expand Up @@ -72,12 +73,8 @@ const achievementActionIdCopyMap: Record<
description: "achievement.alpha_tester_description",
},
}
const _achievementType = apiClient.achievement.$get({
query: {
type: "all",
},
})
type Achievement = Awaited<typeof _achievementType>["data"]

type Achievement = ExtractBizResponse<typeof apiClient.achievement.$get>["data"]
export const AchievementModalContent: FC = () => {
const jotaiStore = useStore()

Expand Down

0 comments on commit 619aa82

Please sign in to comment.