Skip to content

Commit 3b73980

Browse files
committed
chore(*): update financialData class
1 parent 39684f2 commit 3b73980

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/shared/financialData.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ export class FinancialData {
897897
for (const dataRow of data) {
898898
newData.push(this.randomizeObjectData(dataRow));
899899
}
900-
return newData;
900+
return Array.from(data);
901901
}
902902

903903
/** Updates values in random records */
@@ -959,7 +959,6 @@ export class FinancialData {
959959
dataObj.Change = res.Price - dataObj.Price;
960960
dataObj.Price = res.Price;
961961
dataObj[changeP] = res.ChangePercent;
962-
return {...dataObj};
963962
}
964963

965964
private static generateNewPrice(oldPrice): any {

0 commit comments

Comments
 (0)