fix 24h sort in market dropdown, table styling (#141)

This commit is contained in:
aleka
2023-11-09 16:40:27 -05:00
committed by GitHub
parent e09d574d5b
commit 7dec32df5e
6 changed files with 26 additions and 24 deletions
+2 -2
View File
@@ -136,8 +136,8 @@ const useAccountsContext = () => {
getSubaccounts: async ({ dydxAddress }: { dydxAddress: DydxAddress }) => {
try {
const response = await compositeClient?.indexerClient.account.getSubaccounts(dydxAddress);
setDydxSubaccounts(response.subaccounts);
return response.subaccounts;
setDydxSubaccounts(response?.subaccounts);
return response?.subaccounts ?? [];
} catch (error) {
// 404 is expected if the user has no subaccounts
if (error.status === 404) {