fix: remove expired stamps (#463)

* fix: increase waitUntilStampUsable timeout

* fix: wait for stamp to exist after buying
This commit is contained in:
Cafe137
2022-07-04 15:28:43 +02:00
committed by GitHub
parent d12f86b9fa
commit eb51dbb090
3 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export function Provider({ children }: Props): ReactElement {
setIsLoading(true)
const stamps = await beeDebugApi.getAllPostageBatch()
setStamps(stamps.map(enrichStamp))
setStamps(stamps.filter(x => x.exists).map(enrichStamp))
setLastUpdate(Date.now())
} catch (e) {
setError(e as Error)