mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Redirect to peer page on peer create (#213)
This commit is contained in:
parent
2486a05d60
commit
b032c57117
1 changed files with 3 additions and 3 deletions
|
|
@ -77,12 +77,12 @@ export default function CreatePeerDialog({
|
|||
}
|
||||
console.log(response);
|
||||
console.log(response.getPeerId());
|
||||
// goToProfilePage(response.getProfileId());
|
||||
goToPeerPage(response.getPeerId());
|
||||
});
|
||||
};
|
||||
|
||||
const goToProfilePage = (profileId) => {
|
||||
history.push("/app/profile/" + profileId);
|
||||
const goToPeerPage = (peerId) => {
|
||||
history.push("/app/peer/" + peerId);
|
||||
};
|
||||
|
||||
function handleSubmit(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue