Fix error handling in starter pack generation

This commit is contained in:
Eric Bailey
2025-09-04 19:28:15 -05:00
parent 0a6003220a
commit cc568f1df3
@@ -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()