diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 31d2ba1ccb..bbef80cb4e 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -669,13 +669,15 @@ export class ComfyApp { api.addEventListener('execution_error', ({ detail }) => { // Check if this is an auth-related error or credits-related error if ( - detail.exception_message === - 'Unauthorized: Please login first to use this node.' + detail.exception_message?.includes( + 'Unauthorized: Please login first to use this node.' + ) ) { useDialogService().showApiNodesSignInDialog([detail.node_type]) } else if ( - detail.exception_message === - 'Payment Required: Please add credits to your account to use this node.' + detail.exception_message?.includes( + 'Payment Required: Please add credits to your account to use this node.' + ) ) { useDialogService().showTopUpCreditsDialog({ isInsufficientCredits: true