From 53da617ee40a50bac28ffd2b1c57c795c4a089b7 Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 30 Jun 2020 16:59:54 -0700 Subject: [PATCH] user session data is updated when user info is edited --- brain/data/Settings.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/brain/data/Settings.js b/brain/data/Settings.js index 2a026f5..baf6022 100644 --- a/brain/data/Settings.js +++ b/brain/data/Settings.js @@ -29,6 +29,8 @@ export default class Settings { result.folks[index].handle != payload.member.handle || result.folks[index].email != payload.member.email ) { + user.handle = payload.member.handle; + user.email = payload.member.email; result.folks[index].handle = payload.member.handle; result.folks[index].email = payload.member.email; fs.writeJson('site/folks.json', result.folks);