Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge testnet modify to mainnet #37

Merged
merged 53 commits into from
Mar 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
4ffc0d5
update nova tx hash verify
MickWang Mar 15, 2024
7113be0
update for nova hash verify
MickWang Mar 15, 2024
04817d0
feat:mobile ui change.
SarahShy0920 Mar 15, 2024
3d7984e
fix: change leaderboard
haymond-ZK Mar 16, 2024
2265de1
Merge branch 'main' of github.com:zkLinkProtocol/zklink-nova-app into…
haymond-ZK Mar 16, 2024
7b81394
fix: Fixed mobile style
haymond-ZK Mar 16, 2024
751cc22
Merge branch 'main' of github.com:zkLinkProtocol/zklink-nova-app into…
haymond-ZK Mar 16, 2024
93db4b1
fix: Fixed mobile notification
haymond-ZK Mar 16, 2024
634c80f
feat:mobile UI
SarahShy0920 Mar 16, 2024
79f46d2
Merge remote-tracking branch 'origin/main' into feature-ui_mobile_adapt
SarahShy0920 Mar 16, 2024
50381d8
fix:merge bug fix
SarahShy0920 Mar 16, 2024
32d6c45
Merge branch 'feature-ui_mobile_adapt' into feat/test
SarahShy0920 Mar 16, 2024
d3ede6f
test twitter auth
zkLeonardo Mar 16, 2024
5214509
test twitter auth
zkLeonardo Mar 16, 2024
75b3741
test twitter auth
zkLeonardo Mar 16, 2024
76354cf
feat: add twitter main account widget
zkLeonardo Mar 14, 2024
0994ee2
update twitter main account widget
zkLeonardo Mar 15, 2024
3d994eb
update maintenance tips
zkLeonardo Mar 15, 2024
c48a18f
add blast
MickWang Mar 15, 2024
aaf1b69
update for blast
MickWang Mar 15, 2024
ce29e8a
fix: update eth amount
zkLeonardo Mar 15, 2024
5592a62
fix: update leaderboard account self data style
zkLeonardo Mar 15, 2024
20ce3ac
update for blast
MickWang Mar 15, 2024
0799c86
add tweet share btn
MickWang Mar 14, 2024
3b0f876
update for tweet share
MickWang Mar 15, 2024
7585dd8
update for tweet share
MickWang Mar 15, 2024
88429b8
feat: update nova points style
zkLeonardo Mar 15, 2024
7d2f8b6
feat: update nova points style
zkLeonardo Mar 15, 2024
d14d4f2
update twitter share text
zkLeonardo Mar 15, 2024
09d2810
add dashboard tips & add header explorer nav
zkLeonardo Mar 15, 2024
207ca1e
fix: update titter share btn
zkLeonardo Mar 16, 2024
1374ec8
fix: update titter share btn
zkLeonardo Mar 16, 2024
d0af922
fix merge
zkLeonardo Mar 16, 2024
39128a9
fix merge
zkLeonardo Mar 16, 2024
f80ec10
fix merge
zkLeonardo Mar 16, 2024
137a5de
Merge branch 'feat/verify-hash-nova' into goerli
zkLeonardo Mar 16, 2024
da6bfc4
update twitter auth
zkLeonardo Mar 16, 2024
c13e361
Merge branch 'feat/test' into goerli
zkLeonardo Mar 16, 2024
2c1f7ee
fix: Fixed modal style
haymond-ZK Mar 16, 2024
5af9739
Merge branch 'feat/test' into goerli
zkLeonardo Mar 16, 2024
e3696fd
fix: update leaderboard table style
zkLeonardo Mar 16, 2024
1ecc1e7
fix: Optimize button
haymond-ZK Mar 16, 2024
567609d
for test wallet
MickWang Mar 16, 2024
9234bfc
fix: update group milestone pregress bar
zkLeonardo Mar 17, 2024
645e86a
update twitter auth for mainnet
zkLeonardo Mar 17, 2024
0eecd9f
fix: update eth amount
zkLeonardo Mar 15, 2024
67f3ef0
feat: update nova points style
zkLeonardo Mar 15, 2024
abccb23
fix merge
zkLeonardo Mar 17, 2024
d5eed2f
fix merge
zkLeonardo Mar 17, 2024
a3486c5
feat: update nova points style
zkLeonardo Mar 15, 2024
d179a42
feat:mobile UI
SarahShy0920 Mar 16, 2024
1be233c
fix merge
zkLeonardo Mar 17, 2024
e8feeed
fix: update bridge
zkLeonardo Mar 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: update eth amount
  • Loading branch information
zkLeonardo committed Mar 16, 2024
commit ce29e8aaf9c9599dcc5868c03326a8116f6affb2
19 changes: 13 additions & 6 deletions src/pages/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,21 @@ export default function Dashboard() {
};

useEffect(() => {
const ethValue =
let ethValue =
+stakingUsdValue !== 0 && +ethUsdPrice !== 0
? stakingUsdValue / ethUsdPrice
: 0;

console.log("stakingEth", ethValue, stakingUsdValue, ethUsdPrice);
if (
accountTvlData.length === 1 &&
accountTvlData[0].symbol.toLocaleUpperCase() === "ETH"
) {
ethValue = +accountTvlData[0].amount;
}

// console.log("stakingEth", ethValue, stakingUsdValue, ethUsdPrice);
setStakingEthValue(ethValue);
}, [ethUsdPrice, stakingUsdValue]);
}, [ethUsdPrice, stakingUsdValue, accountTvlData]);

const handleMintNow = useCallback(() => {
if (nft || fetchLoading) {
Expand Down Expand Up @@ -475,9 +482,9 @@ export default function Dashboard() {
/**
* return home page if not active
*/
if (!isConnected || !invite?.twitterHandler) {
navigatorTo("/");
}
// if (!isConnected || !invite?.twitterHandler) {
// navigatorTo("/");
// }
}, [isConnected, invite]);

const [isLoading, setIsLoading] = useState(false);
Expand Down