File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @firebase/app ' : patch
3
+ ---
4
+
5
+ App - provide a more robust check to cover more cases of empty heartbeat data.
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export class HeartbeatServiceImpl implements HeartbeatService {
88
88
// service, not the browser user agent.
89
89
const agent = platformLogger . getPlatformInfoString ( ) ;
90
90
const date = getUTCDateString ( ) ;
91
- if ( this . _heartbeatsCache = == null ) {
91
+ if ( this . _heartbeatsCache ?. heartbeats == null ) {
92
92
this . _heartbeatsCache = await this . _heartbeatsCachePromise ;
93
93
}
94
94
// Do not store a heartbeat if one is already stored for this day
@@ -128,7 +128,7 @@ export class HeartbeatServiceImpl implements HeartbeatService {
128
128
}
129
129
// If it's still null or the array is empty, there is no data to send.
130
130
if (
131
- this . _heartbeatsCache = == null ||
131
+ this . _heartbeatsCache ?. heartbeats == null ||
132
132
this . _heartbeatsCache . heartbeats . length === 0
133
133
) {
134
134
return '' ;
You can’t perform that action at this time.
0 commit comments