Fix modal appearing when voter done voting

- add code to close the bootstrap modal after the page render
This commit is contained in:
Afiq Hamzah
2024-04-07 10:17:43 +08:00
parent 8747ffcccc
commit 558e6993a3
@@ -127,6 +127,7 @@ export default {
if (vm.util.showResult(response, 'success')) { if (vm.util.showResult(response, 'success')) {
vm.data.result = response.data.result; vm.data.result = response.data.result;
vm.$router.push({ name: 'Voter Home' }); vm.$router.push({ name: 'Voter Home' });
$('.modal').modal('hide');
} }
}) })
.catch(error => { .catch(error => {