We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce01481 commit 5daf0d0Copy full SHA for 5daf0d0
apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx
@@ -87,19 +87,12 @@ export function ChatPageContent(props: {
87
NebulaContext | undefined
88
>(() => {
89
const contextRes = props.session?.context;
90
-
91
- // If we have context from an existing session, use that
92
- if (contextRes) {
93
- return {
94
- chainIds: contextRes.chain_ids,
95
- walletAddress: contextRes.wallet_address,
96
- };
97
- }
98
99
100
- chainIds: null,
101
- walletAddress: null,
+ const value: NebulaContext = {
+ chainIds: contextRes?.chain_ids || null,
+ walletAddress: contextRes?.wallet_address || null,
102
};
+
+ return value;
103
});
104
105
const setContextFilters = useCallback((v: NebulaContext | undefined) => {
0 commit comments