Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jan 10, 2024
1 parent 659aef2 commit 7526e72
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/screens/apps/NewApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,14 @@ const NewApp = () => {
return expiresParam;
}
}
console.info(expiresParam);
if (!isNaN(parseInt(expiresParam))) {
console.info(
new Date(parseInt(expiresParam as string) * 1000).toISOString()
);
return new Date(parseInt(expiresParam as string) * 1000).toISOString();
}
return "";
};

// Only timestamp in seconds or ISO string is expected
const expiresAtParam = parseExpiresParam(queryParams.get("expires_at") ?? "");
console.info(expiresAtParam);
const [expiresAt, setExpiresAt] = useState(expiresAtParam ?? "");
const [days, setDays] = useState(0);
const [expireOptions, setExpireOptions] = useState(false);
Expand Down

0 comments on commit 7526e72

Please sign in to comment.