feat: add operations page

This commit is contained in:
2026-08-14 13:42:31 +03:00
parent 2cca503519
commit 4f3ee7ddb2
16 changed files with 913 additions and 8 deletions
+8 -2
View File
@@ -22,6 +22,12 @@ export function useAccountPageViewModel() {
if (portfolio.isFetching || !portfolio.data)
return { state: "loading" as const };
if (!portfolio.data.positions.length && !portfolio.data.cashBalances.length)
return { state: "empty" as const, account };
return { state: "loaded" as const, account, portfolio: portfolio.data };
return { state: "empty" as const, account, accountId, accessToken };
return {
state: "loaded" as const,
account,
accountId,
accessToken,
portfolio: portfolio.data,
};
}