about summary refs log tree commit diff
path: root/src/state/models/post.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/post.ts')
-rw-r--r--src/state/models/post.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state/models/post.ts b/src/state/models/post.ts
index 497c8e4c9..749e98bb0 100644
--- a/src/state/models/post.ts
+++ b/src/state/models/post.ts
@@ -2,7 +2,7 @@ import {makeAutoObservable} from 'mobx'
 import {AppBskyFeedPost as Post} from '@atproto/api'
 import {AtUri} from '../../third-party/uri'
 import {RootStoreModel} from './root-store'
-import {cleanError} from '../../lib/strings'
+import {cleanError} from 'lib/strings/errors'
 
 type RemoveIndex<T> = {
   [P in keyof T as string extends P
@@ -67,7 +67,6 @@ export class PostModel implements RemoveIndex<Post.Record> {
     this.isLoading = false
     this.hasLoaded = true
     this.error = cleanError(err)
-    this.error = err ? cleanError(err) : ''
     if (err) {
       this.rootStore.log.error('Failed to fetch post', err)
     }