Skip to content

Commit

Permalink
Merge pull request #16 from antonKrizmanic/stage
Browse files Browse the repository at this point in the history
tostring
  • Loading branch information
antonKrizmanic authored Oct 13, 2024
2 parents b5dc08a + 3faa492 commit 2243959
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/TakeQuiz/MakeMatchQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function MakeMatchQuestion({ question, questionIndex, onAnswer, initialAnswer }:
id="demo-simple-select"
value={selectedAnswers.find((a) => a.questionId === child.id)?.answerId || ''}
displayEmpty
onChange={(e) => handleSelectChange(child.id, e.target.value)}
onChange={(e) => handleSelectChange(child.id, e.target.value.toString())}
>
{possibleAnswers.map((answer) => (
<MenuItem key={answer.id} value={answer.id}>
Expand Down
4 changes: 2 additions & 2 deletions services/ThemeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getLocalStorageItem, setLocalStorageItem } from './LocalStorageService'
* @static
* @returns flag representing is the dark theme selected
*/
export function getIsDarkMode() {
export function getIsDarkMode():boolean {
return getLocalStorageItem('isDarkMode') || false;
}

Expand All @@ -16,6 +16,6 @@ export function getIsDarkMode() {
* @static
* @param {boolean} isDark is dark mode selected flag
*/
export function setIsDarkMode(isDark) {
export function setIsDarkMode(isDark:boolean) {
setLocalStorageItem('isDarkMode', isDark);
}

0 comments on commit 2243959

Please sign in to comment.