diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index 2c9241527..bc10c2dfd 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -1043,15 +1043,19 @@ export default definePlugin({ replace: "return $2.QUESTIFY=\"questify\",$1" } }, + { + // Adds the "Questify" sort option to the sort dropdown. + find: "NOT_SHAREABLE}", + replacement: { + match: /(?=case (\i.\i).SUGGESTED)/, + replace: "case $1.QUESTIFY:return \"Questify\";" + }, + }, { find: "CLAIMED=\"claimed\",", group: true, replacement: [ - { - // Adds the "Questify" sort option to the sort dropdown. - match: /(?=case (\i.\i).SUGGESTED)/, - replace: "case $1.QUESTIFY:return \"Questify\";" - }, + { // Run Questify's sort function every time due to hook requirements but return // early if not applicable. If the sort method is set to "Questify", replace the