Skip to content

Commit 0f1b048

Browse files
return null if any values are null
1 parent 16942a4 commit 0f1b048

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/data-client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,13 +714,13 @@ export class DataClient {
714714
methodName,
715715
});
716716

717-
if (!resp.payload) {
717+
if (!resp.payload || !resp.timeCaptured || !resp.timeSynced) {
718718
return null;
719719
}
720720

721721
return [
722-
resp.timeCaptured?.toDate(),
723-
resp.timeSynced?.toDate(),
722+
resp.timeCaptured.toDate(),
723+
resp.timeSynced.toDate(),
724724
resp.payload.toJson() as Record<string, JsonValue>,
725725
];
726726
}

0 commit comments

Comments
 (0)