Skip to content

Commit b7d7ed7

Browse files
committed
Tenative fix
1 parent eb005f3 commit b7d7ed7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/views/Editor.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ const Editor = () => {
397397
method: 'PUT'
398398
}).then(async (value) => {
399399
if (value.status === 401) {
400-
toast('Sorry, this URL is already taken. Please choose a new one.', "warning");
400+
toast('Sorry, this URL is already taken. Please choose a new one.', "danger");
401401
} else if (value.status < 203) {
402402
toast('Your custom URL has been created!', "success");
403403
toast('You can visit your page at https://public.tracedigital.tk/u/' + customurl, "info");
@@ -411,7 +411,7 @@ const Editor = () => {
411411
}
412412
});
413413
} else {
414-
toast("Please publish your page before customizing your URL.", "warning")
414+
toast("Please publish your page before customizing your URL.", "danger")
415415
}
416416
}
417417

@@ -421,7 +421,7 @@ const Editor = () => {
421421
let url_ending = myProfile.customPath;
422422
window.open('https://public.tracedigital.tk/u/' + url_ending, '_blank');
423423
} else {
424-
toast('Please create a custom URL before navigating to it.', "warning");
424+
toast('Please create a custom URL before navigating to it.', "danger");
425425
}
426426
} else {
427427
toast('Please publish your page before navigating to it.', "warning");
@@ -628,11 +628,11 @@ const Editor = () => {
628628
</div>
629629
}
630630
<DropdownItem divider tag="li" />
631-
{myProfile && (myProfile.customPath == 'null') &&
631+
{myProfile && (myProfile.customPath === 'null') &&
632632
<NavLink tag="li">
633633
<DropdownItem className="nav-item" onClick={addCustomURL} style={{color: "black"}}>Customize URL</DropdownItem>
634634
</NavLink>
635-
} {myProfile && (myProfile.customPath != 'null') &&
635+
} {myProfile && (myProfile.customPath !== 'null') &&
636636
<div>
637637
<NavLink tag="li">
638638
<DropdownItem className="nav-item" onClick={addCustomURL} style={{color: "black"}}>Edit Custom URL</DropdownItem>

0 commit comments

Comments
 (0)