Skip to content

Commit 57bf25c

Browse files
committed
dont allow expiry to be "set" when viewing a paste
1 parent 0192452 commit 57bf25c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mystbin/frontend/components/OptsBar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ export default function OptsBar() {
217217
optional: true,
218218
icon: <HourglassFullIcon />,
219219
callback: () => {
220+
if (window.location.pathname !== "/") {
221+
return;
222+
}
223+
220224
setCurrentModal(
221225
<ExpiryModal
222226
initialValue={expiryValue}

0 commit comments

Comments
 (0)