fix: tip button activation status

This commit is contained in:
DIYgod
2023-03-23 19:41:11 +00:00
parent c7fb4966bd
commit 19a09cc265
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -8,5 +8,6 @@
33483, 19, 50877, 33420, 50094, 49213, 33276, 50351, 42993, 50216, 50132,
45763, 50143, 43754, 32168, 500, 47399, 33538, 48951, 33471, 33396, 37223,
33458, 39133, 20004, 43625, 42787, 43258, 33462, 47109, 46939, 45701, 33233,
37346, 40671, 33870, 33421, 51552, 51585, 51477, 48937, 51562, 51379, 51460
37346, 40671, 33870, 33421, 51552, 51585, 51477, 48937, 51562, 51379, 51460,
51509, 51478, 51639, 48910
]
+1 -1
View File
@@ -137,7 +137,7 @@ export const Reactions: React.FC<{
const isTip = useGetTips({
toCharacterId: characterId,
toNoteId: noteId,
characterId: account?.characterId,
characterId: account?.characterId || "0",
})
const tip = () => {
+1 -1
View File
@@ -364,7 +364,7 @@ export const useGetTips = (
return useInfiniteQuery({
queryKey: ["getTips", data],
queryFn: async ({ pageParam }) => {
if (!data.toCharacterId) {
if (!data.toCharacterId || data.characterId === "0") {
return {
count: 0,
list: [],