This commit is contained in:
eric
2026-06-08 06:05:31 -05:00
parent ebfec37e47
commit 06ab949d81
77 changed files with 3646 additions and 358 deletions

View File

@@ -45,10 +45,20 @@ export function filterFallbackProfiles(
) {
return false;
}
if (advanced?.gender && advanced.gender !== "all" && profile.gender !== advanced.gender) {
if (
advanced?.gender &&
advanced.gender !== "all" &&
advanced.gender !== "不限" &&
profile.gender !== advanced.gender
) {
return false;
}
if (advanced?.single && advanced.single !== "all" && profile.single !== advanced.single) {
if (
advanced?.single &&
advanced.single !== "all" &&
advanced.single !== "不限" &&
profile.single !== advanced.single
) {
return false;
}
return true;
@@ -123,7 +133,7 @@ export async function fetchMutualMatches(): Promise<DatingProfile[]> {
export async function saveSwipe(
profileId: string,
action: "like" | "dislike",
action: "like" | "dislike" | "superlike",
intent: MatchIntent
): Promise<SwipeResult> {
return apiFetch<SwipeResult>("/api/matches/swipes", {