We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83c89d commit 0ee7a4aCopy full SHA for 0ee7a4a
app/src/store/stores/batchStore.ts
@@ -121,6 +121,8 @@ export default class BatchStore {
121
this._store.log.info('fetching latest batch');
122
try {
123
const [poolBatch] = (await this._store.api.pool.batchSnapshots(1)).batchesList;
124
+ // handle edge case that should only be possible on regtest with no batches
125
+ if (!poolBatch) return;
126
// update the timestamp of the next batch when fetching the latest batch
127
await this.fetchNextBatchTimestamp();
128
runInAction(() => {
0 commit comments