Specify type for variable in transaction-list-component

This commit is contained in:
William Brawner 2022-11-26 03:50:47 +00:00
parent d89f615fa0
commit b6b116863c

View file

@ -44,7 +44,7 @@ export class TransactionListComponent implements OnInit {
} }
let toStr = this.route.snapshot.queryParamMap.get('to'); let toStr = this.route.snapshot.queryParamMap.get('to');
var to; let to: Date;
if (toStr) { if (toStr) {
let toDate = new Date(toStr); let toDate = new Date(toStr);
if (!isNaN(toDate.getTime())) { if (!isNaN(toDate.getTime())) {