Skip to content

Commit

Permalink
corrected some type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VijeshVS committed May 29, 2024
1 parent ef2d5cd commit f0681f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Home() {

useEffect(() => {
setLoading(true);
const dataString: any = localStorage.getItem("links");
const dataString = localStorage.getItem("links") as string;
parsePublicRecords(dataString).then((s) => {
setPublicLinks(s);
setLoading(false);
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function Home() {
description: "The link is valid only for 2hrs !!",
});
setLongurlInput("");
updateLocalStorage({ shortUrl: response.shortUrl, longUrl: longurlInput });
updateLocalStorage({ shortUrl: response.shortUrl as string, longUrl: longurlInput });
};

return (
Expand Down

0 comments on commit f0681f3

Please sign in to comment.