diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index 6d619ad19..fd5558b2c 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -1066,16 +1066,12 @@ export default definePlugin({ match: /(START_QUEST_CTA.{0,400}?disabled:)(!0)/, replace: "$1$self.shouldDisableQuestAcceptedButton(arguments[0].quest)??$2" }, - { - // When the Quest Accepted button which has been enabled again by the above patch is - // clicked, resume the automatic completion of the Quest and disable the button again. - match: /(START_QUEST_CTA.*?,{variant:"secondary",)/, - replace: "$1onClick:()=>{$self.processQuestForAutoComplete(arguments[0].quest)},", - }, { // The "Quest Accepted" text is changed to "Resume" if the Quest is in progress but not active. + // When the Quest Accepted button which has been enabled again by the above patch is clicked, + // resume the automatic completion of the Quest and disable the button again. match: /(\i.intl.string\(\i.\i#{intl::QUEST_ACCEPTED}\))/, - replace: "$self.getQuestAcceptedButtonText(arguments[0].quest)??$1" + replace: "$self.getQuestAcceptedButtonText(arguments[0].quest)??$1,onClick:()=>{$self.processQuestForAutoComplete(arguments[0].quest)}" } ] },