From bdc654c30a4b5443e0cf880be58818891eca7926 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 29 Jun 2021 22:05:56 +0200 Subject: [PATCH] use the userId in the coaches action --- src/store/modules/coaches/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/coaches/actions.js b/src/store/modules/coaches/actions.js index 188884a..5e507f1 100644 --- a/src/store/modules/coaches/actions.js +++ b/src/store/modules/coaches/actions.js @@ -1,7 +1,7 @@ export default { registerCoach(context, data) { const coachData = { - id: 'c3', + id: context.rootGetters.userId, firstName: data.first, lastName: data.last, description: data.desc,