Actions are judged by intentions." (Bukhari & Muslim)
ЁЯУМ Relatable: So technically, if you went to the masjid for free AC, but your niyyah switched to prayer... you're still good. ЁЯШД Fix the heart, and the deeds follow.