From 56d92f7e85765999437de2dda9c753636a5a9220 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Wed, 13 Sep 2023 12:23:02 -0500 Subject: [PATCH] fix(profile): fix people who dont have otherJobLevels set --- client/src/app/pages/profile/profile.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/pages/profile/profile.page.ts b/client/src/app/pages/profile/profile.page.ts index f068483..b778dc1 100644 --- a/client/src/app/pages/profile/profile.page.ts +++ b/client/src/app/pages/profile/profile.page.ts @@ -78,7 +78,7 @@ export class ProfilePage implements OnInit { name: player.job, level: player.level, }, - ...Object.keys(player.otherJobLevels).map((job) => { + ...Object.keys(player.otherJobLevels || {}).map((job) => { return { name: job, level: player.otherJobLevels[job],