From 5a2551c83e451823c7d3176a5dbac9adca34dea1 Mon Sep 17 00:00:00 2001
From: Sam Wilkins <abdullah_ahmed@brown.edu>
Date: Mon, 18 Mar 2019 02:13:49 -0400
Subject: fixed email name bug

---
 src/client/views/collections/CollectionFreeFormView.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/client/views/collections/CollectionFreeFormView.tsx')

diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx
index 4a82bdb77..e095f0252 100644
--- a/src/client/views/collections/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/CollectionFreeFormView.tsx
@@ -376,7 +376,8 @@ export class CollectionFreeFormView extends CollectionViewBase {
                     {this.views}
                     {super.getCursors().map(entry => {
                         if (entry.Data.length > 0) {
-                            let id = entry.Data[0];
+                            let id = entry.Data[0][0];
+                            let email = entry.Data[0][1];
                             let point = entry.Data[1];
                             this.drawCrosshairs("#" + v5(id, v5.URL).substring(0, 6).toUpperCase() + "22")
                             return (
@@ -410,7 +411,7 @@ export class CollectionFreeFormView extends CollectionViewBase {
                                             marginLeft: -12,
                                             marginTop: 4
                                         }}
-                                    >{CurrentUserUtils.email[0].toUpperCase()}</p>
+                                    >{email[0].toUpperCase()}</p>
                                 </div>
                             );
                         }
-- 
cgit v1.2.3-70-g09d2

