add account import and export

This commit is contained in:
Tom
2023-05-10 14:17:24 +02:00
parent b8d7e11744
commit e82edf1165
2 changed files with 59 additions and 17 deletions
+3 -3
View File
@@ -58,13 +58,13 @@ const Subscriptions = () => {
const errorString = useMemo(() => {
for (const subplebbit of subplebbits) {
if (subplebbit.updatingState !== 'failed') {
if (subplebbit?.updatingState !== 'failed') {
return
}
}
for (const subplebbit of subplebbits) {
if (subplebbit.error) {
return `Failed fetching subplebbit: ${subplebbit.error.toString().slice(0, 300)}`
if (subplebbit?.error) {
return `Failed fetching subplebbit: ${subplebbit?.error.toString().slice(0, 300)}`
}
}
}, [subplebbits])