From 7ef4df414f7b09455a2273ce32351efcbe856d51 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Mon, 18 Oct 2021 15:01:06 -0400 Subject: [PATCH] fix sleeve task selector not getting the right task when loading the screen --- src/PersonObjects/Sleeve/ui/TaskSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PersonObjects/Sleeve/ui/TaskSelector.tsx b/src/PersonObjects/Sleeve/ui/TaskSelector.tsx index 2c79d552c..4c2619328 100644 --- a/src/PersonObjects/Sleeve/ui/TaskSelector.tsx +++ b/src/PersonObjects/Sleeve/ui/TaskSelector.tsx @@ -122,7 +122,7 @@ const tasks: { }; }, "Commit Crime": (): ITaskDetails => { - return { first: Object.keys(Crimes), second: () => ["------"] }; + return { first: Object.values(Crimes).map((crime) => crime.name), second: () => ["------"] }; }, "Take University Course": (player: IPlayer, sleeve: Sleeve): ITaskDetails => { let universities: string[] = [];