Skip to content

Commit

Permalink
Subscription Delete: fix bug in logic
Browse files Browse the repository at this point in the history
  • Loading branch information
arcangelini committed Jan 17, 2025
1 parent da5ee03 commit 47635e1
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ const useSubscriberRemoveMutation = (
// Only throw if subscription_id is empty
if ( ( e as ApiResponseError )?.error === 'not_found' && ! subscriber.subscription_id ) {
throw new Error( ( e as ApiResponseError )?.message );
} else {
// Throw for any other error
throw new Error( ( e as ApiResponseError )?.message );
}
}
}
Expand Down

0 comments on commit 47635e1

Please sign in to comment.