fix(shared): tag filter SQL precedence, balance cards filter by tag

This commit is contained in:
2026-03-14 21:30:33 +11:00
parent 02ac136e19
commit d53d3106f2
4 changed files with 27 additions and 14 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ function PaymentHistory({ participantId, currentUserId }: { participantId: numbe
export default function SharedPage() {
const [tagIds, setTagIds] = useState<string[]>([]);
const { data: transactions = [], isLoading: txLoading } = useSharedTransactions(tagIds);
const { data: balances = [], isLoading: balLoading } = useParticipantBalances();
const { data: balances = [], isLoading: balLoading } = useParticipantBalances(tagIds);
const { data: me } = useCurrentUser();
const [addingParticipant, setAddingParticipant] = useState(false);
const [paymentModal, setPaymentModal] = useState<{ id: number; name: string; balance: number } | null>(null);