Skip to content

Commit

Permalink
fix: fix a behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Jan 13, 2025
1 parent 4a2238a commit 1a40447
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/adena-extension/src/hooks/use-balance-input.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BigNumber from 'bignumber.js';
import { useCallback, useEffect, useState } from 'react';

import { GasToken } from '@common/constants/token.constant';
import { GasToken, GNOT_TOKEN } from '@common/constants/token.constant';
import { DEFAULT_GAS_FEE, DEFAULT_GAS_WANTED } from '@common/constants/tx.constant';
import { MsgEndpoint } from '@gnolang/gno-js-client';
import { NetworkFee, TokenBalanceType, TokenModel } from '@types';
Expand Down Expand Up @@ -193,7 +193,7 @@ function makeTransferDocument(params: {
value: {
from_address: params.fromAddress,
to_address: params.toAddress,
amount: 1,
amount: `1${GNOT_TOKEN.denom}`,
},
},
],
Expand Down
15 changes: 8 additions & 7 deletions packages/adena-extension/src/router/popup/loading-main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ const LoadingMain = (): ReactElement => {
return false;
}
if (failedNetwork === false) {
// if (isLoadingImage) {
// return true;
// }
// if (currentBalances.length > 0) {
// return false;
// }
if (isLoadingImage) {
return true;
}

if (currentBalances.length > 0) {
return false;
}
}
}
return false;
return true;
}, [
isPopupMatch,
state,
Expand Down

0 comments on commit 1a40447

Please sign in to comment.