Skip to content

Commit c5a3508

Browse files
committed
Link sharing logic fixed and made global without platform parameter
1 parent a651dc1 commit c5a3508

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/GitSequencer.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,7 @@ const GitSequencer = () => {
553553

554554
// URL to clipboard
555555
const handleShare = () => {
556-
const platformParam = platform === 'gitlab' ? '?platform=gitlab' : '';
557-
const shareUrl = `${window.location.origin}/${encodeURIComponent(username)}${platformParam}`;
556+
const shareUrl = `${window.location.origin}/${encodeURIComponent(username)}`;
558557
navigator.clipboard.writeText(shareUrl).then(() => {
559558
setShowToast(true);
560559
}).catch(() => {
@@ -602,7 +601,7 @@ const GitSequencer = () => {
602601
const userParam = pathUser || queryUser;
603602
if (userParam) {
604603
setUsername(userParam);
605-
loadData(userParam, queryPlatform || 'github');
604+
loadData(userParam, queryPlatform);
606605
}
607606
}, []);
608607

0 commit comments

Comments
 (0)