Skip to content

Commit

Permalink
Refactor hardcoded constant to variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
elle-j committed Aug 30, 2023
1 parent 8206d52 commit c1d8eda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function addKiosks() {
if (realm) {
const products = getProducts();
realm.write(() => {
for (let i = 1; i <= 10; i++) {
const NUM_KIOSKS = 10;
for (let i = 1; i <= NUM_KIOSKS; i++) {
realm.create(Kiosk.schema.name, {
_id: new BSON.ObjectId(),
storeId: SYNC_STORE_ID,
Expand Down

0 comments on commit c1d8eda

Please sign in to comment.