fix: tip button activation status
This commit is contained in:
+2
-1
@@ -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
|
||||
]
|
||||
|
||||
@@ -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
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user