's'
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user