Skip to content

Commit

Permalink
Merge pull request #446 from arconnectio/development
Browse files Browse the repository at this point in the history
ArConnect BETA 1.17.2
  • Loading branch information
nicholaswma committed Jul 15, 2024
2 parents 4974ce5 + 356cdaa commit 5bb86e2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1937,11 +1937,11 @@
"description": "Popup description about ao token transfer learn more"
},
"ao_degraded": {
"message": "AO Token Process Network Degraded.",
"message": "Unable to connect to AO Token Process",
"description": "ao degraded title text"
},
"ao_degraded_description": {
"message": "AO token process will be available when <br/>the network issues are resolved.",
"message": "AO balance will be available when <br/>network issues are resolved.",
"description": "ao degraded description text"
},
"network_issue": {
Expand Down
4 changes: 2 additions & 2 deletions assets/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1935,11 +1935,11 @@
"description": "Popup description about ao token transfer learn more"
},
"ao_degraded": {
"message": "AO 代币处理网络降级。",
"message": "无法连接到 AO 令牌进程",
"description": "ao degraded title text"
},
"ao_degraded_description": {
"message": "网络问题解决后,AO 代币处理将可用",
"message": "网络问题解决后,AO 余额将可用",
"description": "ao degraded description text"
},
"network_issue": {
Expand Down
10 changes: 8 additions & 2 deletions src/routes/popup/send/confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,10 @@ export default function Confirm({ tokenID, qty, subscription }: Props) {
useEffect(() => {
(async () => {
setIsLoading(true);
if (!recipient?.address) return;
if (!recipient?.address) {
setIsLoading(false);
return;
}

// get the tx from storage
const prepared = await prepare(recipient.address);
Expand All @@ -554,7 +557,10 @@ export default function Confirm({ tokenID, qty, subscription }: Props) {

// check if the current wallet
// is a hardware wallet
if (wallet?.type !== "hardware") return;
if (wallet?.type !== "hardware") {
setIsLoading(false);
return;
}

if (isAo) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/aoTokens/ao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function useAoTokens(
() =>
tokens.map((token) => ({
...token,
balance: balances.find((bal) => bal.id === token.id)?.balance ?? null
balance: balances.find((bal) => bal.id === token.id)?.balance
})),
[tokens, balances]
);
Expand Down

0 comments on commit 5bb86e2

Please sign in to comment.