about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
Diffstat (limited to 'src/state')
-rw-r--r--src/state/queries/list-memberships.ts4
-rw-r--r--src/state/queries/list.ts4
-rw-r--r--src/state/queries/messages/actor-declaration.ts4
-rw-r--r--src/state/queries/pinned-post.ts2
-rw-r--r--src/state/queries/starter-packs.ts2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/state/queries/list-memberships.ts b/src/state/queries/list-memberships.ts
index 83a2c2db1..b93dc059d 100644
--- a/src/state/queries/list-memberships.ts
+++ b/src/state/queries/list-memberships.ts
@@ -101,7 +101,7 @@ export function useListMembershipAddMutation() {
   >({
     mutationFn: async ({listUri, actorDid}) => {
       if (!currentAccount) {
-        throw new Error('Not logged in')
+        throw new Error('Not signed in')
       }
       const res = await agent.app.bsky.graph.listitem.create(
         {repo: currentAccount.did},
@@ -160,7 +160,7 @@ export function useListMembershipRemoveMutation() {
   >({
     mutationFn: async ({membershipUri}) => {
       if (!currentAccount) {
-        throw new Error('Not logged in')
+        throw new Error('Not signed in')
       }
       const membershipUrip = new AtUri(membershipUri)
       await agent.app.bsky.graph.listitem.delete({
diff --git a/src/state/queries/list.ts b/src/state/queries/list.ts
index 405cb4ae3..be7542880 100644
--- a/src/state/queries/list.ts
+++ b/src/state/queries/list.ts
@@ -60,7 +60,7 @@ export function useListCreateMutation() {
         avatar,
       }) {
         if (!currentAccount) {
-          throw new Error('Not logged in')
+          throw new Error('Not signed in')
         }
         if (
           purpose !== 'app.bsky.graph.defs#curatelist' &&
@@ -126,7 +126,7 @@ export function useListMetadataMutation() {
     async mutationFn({uri, name, description, descriptionFacets, avatar}) {
       const {hostname, rkey} = new AtUri(uri)
       if (!currentAccount) {
-        throw new Error('Not logged in')
+        throw new Error('Not signed in')
       }
       if (currentAccount.did !== hostname) {
         throw new Error('You do not own this list')
diff --git a/src/state/queries/messages/actor-declaration.ts b/src/state/queries/messages/actor-declaration.ts
index 1105e2b3c..828b85d9e 100644
--- a/src/state/queries/messages/actor-declaration.ts
+++ b/src/state/queries/messages/actor-declaration.ts
@@ -18,7 +18,7 @@ export function useUpdateActorDeclaration({
 
   return useMutation({
     mutationFn: async (allowIncoming: 'all' | 'none' | 'following') => {
-      if (!currentAccount) throw new Error('Not logged in')
+      if (!currentAccount) throw new Error('Not signed in')
       const result = await agent.api.com.atproto.repo.putRecord({
         repo: currentAccount.did,
         collection: 'chat.bsky.actor.declaration',
@@ -68,7 +68,7 @@ export function useDeleteActorDeclaration() {
 
   return useMutation({
     mutationFn: async () => {
-      if (!currentAccount) throw new Error('Not logged in')
+      if (!currentAccount) throw new Error('Not signed in')
       // TODO(sam): remove validate: false once PDSes have the new lexicon
       const result = await agent.api.com.atproto.repo.deleteRecord({
         repo: currentAccount.did,
diff --git a/src/state/queries/pinned-post.ts b/src/state/queries/pinned-post.ts
index 7e2c8ee79..7e6fc6677 100644
--- a/src/state/queries/pinned-post.ts
+++ b/src/state/queries/pinned-post.ts
@@ -32,7 +32,7 @@ export function usePinnedPostMutation() {
         updatePostShadow(queryClient, postUri, {pinned: pinCurrentPost})
 
         // get the currently pinned post so we can optimistically remove the pin from it
-        if (!currentAccount) throw new Error('Not logged in')
+        if (!currentAccount) throw new Error('Not signed in')
         const {data: profile} = await agent.getProfile({
           actor: currentAccount.did,
         })
diff --git a/src/state/queries/starter-packs.ts b/src/state/queries/starter-packs.ts
index 4066f8f19..b90a57037 100644
--- a/src/state/queries/starter-packs.ts
+++ b/src/state/queries/starter-packs.ts
@@ -294,7 +294,7 @@ export function useDeleteStarterPackMutation({
   return useMutation({
     mutationFn: async ({listUri, rkey}: {listUri?: string; rkey: string}) => {
       if (!agent.session) {
-        throw new Error(`Requires logged in user`)
+        throw new Error(`Requires signed in user`)
       }
 
       if (listUri) {