Преглед изворни кода

refactor: made sure Recaptcha is no longer loaded after the register modal has closed

Kristian Vos пре 5 година
родитељ
комит
3653b394cf
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      frontend/store/modules/modals.js

+ 1 - 0
frontend/store/modules/modals.js

@@ -32,6 +32,7 @@ const getters = {};
 
 const actions = {
 	closeModal: ({ commit }, data) => {
+		if (data.modal === "register") window.location.reload();
 		commit("closeModal", data);
 	},
 	openModal: ({ commit }, data) => {