From cc568f1df31673373e4ee4895eb1bde3cea38eab Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 4 Sep 2025 19:28:15 -0500 Subject: [PATCH] Fix error handling in starter pack generation --- src/components/StarterPack/ProfileStarterPacks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index 73aee28f4e..bbe0bc52b2 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -214,7 +214,7 @@ function Empty() { onError: e => { logger.error('Failed to generate starter pack', {safeMessage: e}) setIsGenerating(false) - if (e.name === 'NOT_ENOUGH_FOLLOWERS') { + if (e.message.includes('NOT_ENOUGH_FOLLOWERS')) { followersDialogControl.open() } else { errorDialogControl.open()