diff --git a/packages/adapter-react-v5/src/LegacyConnection.tsx b/packages/adapter-react-v5/src/LegacyConnection.tsx index 15b5e1f32..d84ca420f 100644 --- a/packages/adapter-react-v5/src/LegacyConnection.tsx +++ b/packages/adapter-react-v5/src/LegacyConnection.tsx @@ -844,7 +844,7 @@ export class LegacyConnection { ids, (err: string | null, states: Record) => { if (err) { - err && console.error(`Cannot getForeignStates "${id}": ${JSON.stringify(err)}`); + console.error(`Cannot getForeignStates "${id}": ${JSON.stringify(err)}`); reject(new Error(err)); } else { if (states) {