Skip to content

Commit

Permalink
Optional chain potentially null syncStatus (#4243)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie committed Nov 1, 2022
1 parent 010fecc commit 52d920b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ const _additionalSyncIsRequired = async (
}
}

if (syncStatus.startsWith('success')) {
if (syncStatus?.startsWith('success')) {
await SecondarySyncHealthTracker.recordSuccess(
targetNode,
userWallet,
Expand Down

0 comments on commit 52d920b

Please sign in to comment.