Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Apply minor fixes (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Dec 6, 2020
1 parent d3a7cf4 commit d275e48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,7 @@
"version": "0.1.0",
"description": "Platform for providing surveys with live display features",
"main": "src/electron/main.js",
"keywords": [
"Live",
"Poll",
"Survey",
"Question",
"Answer",
"Quiz",
"Mulitple Choice",
"Open Text",
"Rating"
],
"keywords": ["Live", "Poll", "Survey", "Question", "Answer", "Quiz", "Mulitple Choice", "Open Text", "Rating"],
"repository": "https://github.com/livepoll/live-poll",
"author": "Marc Auberer",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions src/app/pages/poll/poll.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,16 @@ export class PollComponent {
switch (this.pollStatus) {
case 1: { // Pending
if (startDate.getTime() === 0 && endDate.getTime() === 0) return 'Manual opening, manual closing';
if (startDate.getTime() === 0) return 'Manual opening, automatically closing at' + endDateString;
if (endDate.getTime() === 0) return 'Automatically opening at ' + startDateString + ', manual closing';
return 'Automatically opening at ' + startDateString + ', automatically closing at ' + endDateString;
if (startDate.getTime() === 0) return 'Manual opening, auto closing at' + endDateString;
if (endDate.getTime() === 0) return 'Auto opening at ' + startDateString + ', manual closing';
return 'Auto opening at ' + startDateString + ', auto closing at ' + endDateString;
}
case 2: { // Running
if (endDate.getTime() === 0) return 'Running since ' + startDateString + ', manual closing';
return 'Running since ' + startDateString + ', automatically closing at ' + endDateString;
return 'Running since ' + startDateString + ', auto closing at ' + endDateString;
}
case 3: { // Finished
return 'Poll ran from ' + startDateString + ' to ' + endDateString;
return 'Ran from ' + startDateString + ' to ' + endDateString;
}
default: return ''; // Unknown state, return empty string
}
Expand Down

0 comments on commit d275e48

Please sign in to comment.