Skip to content

Commit

Permalink
refactor: api response change
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer0114 authored and qwer0114 committed Nov 28, 2024
1 parent c62f21a commit a26c0b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function OrderBuyForm({ currentPrice, selectPrice }: OrderBuyFormProsp) {
const summaryItems = [
{
label: '매수 가능 금액',
value: `${Math.floor(balance.KRW).toLocaleString()}원`,
value: `${Math.floor(balance.availableKRW).toLocaleString()}원`,
},
];

Expand Down
9 changes: 5 additions & 4 deletions packages/client/src/types/account.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type Account = {
KRW: number;
availableKRW: number;
total_bid: number;
coins: AccountCoin[];
};
Expand All @@ -17,8 +18,8 @@ export type AccountCoin = {
export type CategoryKey = 'balance' | 'history' | 'wait_orders';

export type CategoryInfo = {
[K in CategoryKey]: {
text: string;
path: string;
}
[K in CategoryKey]: {
text: string;
path: string;
};
};

0 comments on commit a26c0b8

Please sign in to comment.