Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Staketab/mina-names into ro…
Browse files Browse the repository at this point in the history
…llup
  • Loading branch information
gavrushoves committed May 17, 2024
2 parents 83d09d7 + b624ac0 commit 14f886c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 8 additions & 1 deletion ui/app/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,15 @@ export async function checkReservedName(
): Promise<{ id: string | null; status: DOMAIN_STATUS | null }> {

const res = await fetch(
`${process.env.Non_NEXT_PUBLIC_API_URL}/domains/${domainName}/reserved`
`${process.env.Non_NEXT_PUBLIC_API_URL}/domains/${domainName}/reserved`,
{
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.Non_NEXT_PUBLIC_API_KEY,
},
}
);

return await res.json();
}

Expand Down
2 changes: 1 addition & 1 deletion ui/comman/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const bag = "bag";

export const initReservationTime = 30;
export const contractAddress =
"B62qnXXnnwnyUKbEBuQM64LEfNcBRzCkeNSCu3H4mhbe7ittQX2mDNS";
"B62qoYeVkaeVimrjBNdBEKpQTDR1gVN2ooaarwXaJmuQ9t8MYu9mDNS";

export const developer = "@staketab";

Expand Down
5 changes: 4 additions & 1 deletion ui/components/molecules/modals/uploadModal/uploadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ const UploadModal = ({
header: "Updating is in progress.",
button: {
text: "See Domains",
action: () => router.push(Routs.NAMES),
action: () => {
router.push(Routs.NAMES);
closeModal();
},
},
});
} else {
Expand Down

0 comments on commit 14f886c

Please sign in to comment.