Make team number a string
Signed-off-by: Emily Markova <emily.markova@gmail.com>
Change-Id: Ia1cff2cfb854e2202cbcaee6f1fd22fc7efd1c15
diff --git a/scouting/www/notes/notes.component.ts b/scouting/www/notes/notes.component.ts
index 2786717..3848c22 100644
--- a/scouting/www/notes/notes.component.ts
+++ b/scouting/www/notes/notes.component.ts
@@ -48,7 +48,7 @@
}
interface Input {
- teamNumber: number;
+ teamNumber: string;
notesData: string;
keywordsData: Keywords;
}
@@ -79,7 +79,7 @@
section: Section = 'TeamSelection';
errorMessage = '';
- teamNumberSelection: number = 971;
+ teamNumberSelection: string = '971';
// Data inputted by user is stored in this array.
// Includes the team number, notes, and keyword selection.
@@ -145,10 +145,12 @@
const builder = new Builder();
const dataFb = builder.createString(this.newData[i].notesData);
+ const teamNumber = builder.createString(this.newData[i].teamNumber);
+
builder.finish(
SubmitNotes.createSubmitNotes(
builder,
- this.newData[i].teamNumber,
+ teamNumber,
dataFb,
this.newData[i].keywordsData.goodDriving,
this.newData[i].keywordsData.badDriving,