diff --git a/frontend/src/components/common/Game/Dialog/MatchRom.vue b/frontend/src/components/common/Game/Dialog/MatchRom.vue index dab1b4da6..101ada6ad 100644 --- a/frontend/src/components/common/Game/Dialog/MatchRom.vue +++ b/frontend/src/components/common/Game/Dialog/MatchRom.vue @@ -39,9 +39,16 @@ const isIGDBFiltered = ref(true); const isMobyFiltered = ref(true); emitter?.on("showMatchRomDialog", (romToSearch) => { rom.value = romToSearch; - searchTerm.value = romToSearch.name || romToSearch.file_name_no_tags || ""; show.value = true; - if (rom.value.igdb_id || rom.value.moby_id) { + + // Use name as search term, only when it's matched + // Otherwise use the filename without tags and extensions + searchTerm.value = + romToSearch.igdb_id || romToSearch.moby_id + ? (romToSearch.name ?? "") + : romToSearch.file_name_no_tags; + + if (searchTerm.value) { searchRom(); } });