improve match logic

This commit is contained in:
kawamataryo
2023-08-20 15:22:55 +09:00
parent ea28f45e7f
commit 1e24268375
3 changed files with 40 additions and 27 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ const MatchTypeLabel = ({ matchType }: { matchType: typeof BSKY_USER_MATCH_TYPE[
const [text, labelClass] = match(matchType)
.with(
BSKY_USER_MATCH_TYPE.HANDLE,
() => ["Same handle", "match-type__handle"]
() => ["Same handle name", "match-type__handle"]
)
.with(
BSKY_USER_MATCH_TYPE.DISPLAY_NAME,
@@ -94,7 +94,7 @@ const MatchTypeLabel = ({ matchType }: { matchType: typeof BSKY_USER_MATCH_TYPE[
)
.with(
BSKY_USER_MATCH_TYPE.DESCRIPTION,
() => ["Included handle or display name in description", "match-type__description"]
() => ["Included handle name in description", "match-type__description"]
)
.run()