Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function for generating trials & binding to reset group button #4

Open
wasita opened this issue Jan 25, 2023 · 2 comments
Open

function for generating trials & binding to reset group button #4

wasita opened this issue Jan 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@wasita
Copy link
Contributor

wasita commented Jan 25, 2023

currently, we're hard-coding trials into the firestore database, but ideally in the future should have a function in utils that generates a trial sequence (list of possible endowments). this function should also be called when a user presses the 'reset group' button

@wasita wasita added the enhancement New feature or request label Jan 25, 2023
@wasita
Copy link
Contributor Author

wasita commented Jun 17, 2023

can initialize trials like so, in saveName() in utils.js:

      updateData['trials'] = Array.from({ length: 3 }, (_, index) => ({
        endowment: 10,
      }));

@wasita
Copy link
Contributor Author

wasita commented Jun 17, 2023

though would need to be put in different function if want to bind to resetGroup button too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant