We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e44460 commit 41c5e49Copy full SHA for 41c5e49
examples/sync-demo-expo/src/App.tsx
@@ -97,7 +97,6 @@ function TestApp({ deviceToken }: { deviceToken: string | null }) {
97
98
useEffect(() => {
99
if (!lastSyncTime || !currentSyncInterval) {
100
- setNextSyncIn(null);
101
return;
102
}
103
@@ -232,7 +231,7 @@ function TestApp({ deviceToken }: { deviceToken: string | null }) {
232
231
Last sync: {new Date(lastSyncTime).toLocaleTimeString()}
233
</Text>
234
)}
235
- {nextSyncIn != null && (
+ {nextSyncIn != null && lastSyncTime && currentSyncInterval && (
236
<Text style={styles.status}>Next sync in {nextSyncIn}s</Text>
237
238
</View>
0 commit comments