Skip to content

Commit

Permalink
Merge pull request #765 from haqq-network/dev
Browse files Browse the repository at this point in the history
release
  • Loading branch information
olegshilov authored Apr 1, 2024
2 parents d78ca70 + 37c2477 commit bd51090
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/vesting/src/app/app-container.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PropsWithChildren } from 'react';
import { BrowserRouter } from 'react-router-dom';
import { haqqMainnet, haqqTestedge2 } from 'viem/chains';
import { haqqMainnet } from 'viem/chains';
import {
CosmosProvider,
ReactQueryProvider,
Expand All @@ -17,7 +17,7 @@ export function AppContainer({ children }: PropsWithChildren) {
<ReactQueryProvider>
<WagmiProvider
walletConnectProjectId={environment.walletConnectProjectId}
supportedChains={[haqqMainnet, haqqTestedge2]}
supportedChains={[haqqMainnet]}
>
<CosmosProvider>
<WalletProvider>
Expand Down
4 changes: 3 additions & 1 deletion apps/vesting/src/components/VestingAccountStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ function LockupPeriods({
prevDate.getTime() < nowTime && unlockDate.getTime() > nowTime;

const state = getState(past, current);
const amount =
el.amount && el.amount.length ? el.amount?.[0].amount : '0';

return [
...acc,
{
date: unlockDate,
amount: el.amount?.[0].amount ?? '0',
amount,
state,
},
];
Expand Down
2 changes: 1 addition & 1 deletion apps/vesting/src/utils/format-number-locale.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function formatLocaleNumber(value?: number) {
if (!value) {
if (value === undefined) {
return undefined;
}

Expand Down

1 comment on commit bd51090

@vercel
Copy link

@vercel vercel bot commented on bd51090 Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.