Skip to content

Commit 6a51d45

Browse files
author
kevinTim
committed
Merge pull request 'The set method of createCalorieDateMap now calls the store's set function' (#15) from robertoloja/running-calorie-average:robertoloja/bug-fix-task-443-entering-data-updates-all-averages into main
Reviewed-on: https://codeberg.org/508_dev/running-calorie-average/pulls/15
2 parents 1a95f6c + 0afd150 commit 6a51d45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/stores.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function createCalorieDateMap() {
1414
subscribe,
1515
set: (val: CalorieDateMap) => {
1616
localStorage.calorieMap = JSON.stringify(val);
17+
set(val);
1718
},
1819
update: (cb: (arg0: CalorieDateMap) => CalorieDateMap) => {
1920
const newStore = cb(get(store));

0 commit comments

Comments
 (0)