Skip to content

Commit

Permalink
[WEB] Fix mainnet buy tez link
Browse files Browse the repository at this point in the history
  • Loading branch information
asiia-trilitech committed Jan 17, 2025
1 parent 144ad5f commit 8b2f4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/state/src/hooks/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useBuyTezUrl = (pkh?: string) => {
const network = useSelectedNetwork();
let buyTezUrl = network.buyTezUrl;

if (buyTezUrl && network === MAINNET) {
if (buyTezUrl && network.name === "mainnet") {
buyTezUrl += `/default/widget/?commodity=XTZ&address=${pkh}&network=tezos&commodity_id=xtz.simple.tezos`;
}

Expand Down

0 comments on commit 8b2f4bd

Please sign in to comment.