aboutsummaryrefslogtreecommitdiff
path: root/src/components/mao-tutoring.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mao-tutoring.js')
-rw-r--r--src/components/mao-tutoring.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js
index 423effd..a18cc2c 100644
--- a/src/components/mao-tutoring.js
+++ b/src/components/mao-tutoring.js
@@ -318,7 +318,7 @@ class MaoTutoring extends connect(store)(PageViewElement) {
}
requestHours() {
- if(this.shadowRoot && !this.isUploaded) {
+ if(this.shadowRoot && this.isUploaded) {
var timeElement = this.shadowRoot.getElementById('timeField');
var traineeElement = this.shadowRoot.getElementById('traineeField');
var subjectElement = this.shadowRoot.getElementById('subjectField');
@@ -342,7 +342,7 @@ class MaoTutoring extends connect(store)(PageViewElement) {
const subject = subjectElement .value;
const date = dateElement .value;
- store.dispatch(requestHours(timeHours, traineeName, subject, location, date, this.pictureName));
+ store.dispatch(requestHours(timeHours, traineeName, location, subject, date, this.pictureName));
timeElement .value = "";
traineeElement .value = "";