Skip to content

Commit

Permalink
chore: code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016x committed Jul 26, 2024
1 parent dbe1c0a commit 2f3156c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ui/style/cssvars.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
--rabby-light-neutral-title-1: rgba(25, 41, 69, 1);
--rabby-light-neutral-body: rgba(62, 73, 94, 1);
--rabby-light-neutral-foot: rgba(106, 117, 135, 1);
--rabby-light-neutral-line: rgba(211, 216, 224, 1);
--rabby-light-neutral-line: rgba(224, 229, 236, 1);
--rabby-light-neutral-bg1: rgba(255, 255, 255, 1);
--rabby-light-neutral-bg-1: rgba(255, 255, 255, 1);
--rabby-light-neutral-bg2: rgba(242, 244, 247, 1);
Expand Down Expand Up @@ -124,7 +124,7 @@
--r-neutral-body: var(--rabby-light-neutral-body);
--r-neutral-foot-rgb: 106, 117, 135;
--r-neutral-foot: var(--rabby-light-neutral-foot);
--r-neutral-line-rgb: 211, 216, 224;
--r-neutral-line-rgb: 224, 229, 236;
--r-neutral-line: var(--rabby-light-neutral-line);
--r-neutral-bg1-rgb: 255, 255, 255;
--r-neutral-bg1: var(--rabby-light-neutral-bg1);
Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/ApprovalManagePage/useApprovalsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ export function useApprovalsPage(options?: { isTestnet?: boolean }) {

const tokenAuthorizedQueryList = usedChainList.map((e) => async () => {
try {
const data = await openapiClient.tokenAuthorizedList(userAddress, e.id, { restfulPrefix: 'v2' });
const data = await openapiClient.tokenAuthorizedList(
userAddress,
e.id,
{ restfulPrefix: 'v2' }
);
if (data.length) {
data.forEach((token) => {
token.spenders.forEach((spender) => {
Expand Down

0 comments on commit 2f3156c

Please sign in to comment.