Browse Source

fix: Added explaining comments.

master
Denis Thiessen 6 months ago
parent
commit
ec7ad080ff
  1. 2
      src/components/RandomIDComponent.jsx

2
src/components/RandomIDComponent.jsx

@ -5,6 +5,7 @@ import { getTranslation } from "../core/i18n/I18NHandler";
var randomId = 0;
// State for saving participant ID globally.
export const participantIdLogState = createStore(
persist(
() => ({
@ -19,6 +20,7 @@ export const participantIdLogState = createStore(
const { getState, setState } = participantIdLogState;
// Can only be called once. :)
function RandomIDComponent() {
randomId = Math.floor(Math.random() * 89999) + 10000;
setState({ participant_id: "" + randomId })

Loading…
Cancel
Save