uoohh uhh im so fukn retarded durr
This commit is contained in:
@ -41,6 +41,7 @@ const getRandomResultFromGCI = async (
|
||||
};
|
||||
|
||||
const lmgcitfy = async (query: string): Promise<APIResult<string>> => {
|
||||
try {
|
||||
if (!query) {
|
||||
return { error: true, errorMessage: "You must provide a search query." };
|
||||
}
|
||||
@ -52,6 +53,12 @@ const lmgcitfy = async (query: string): Promise<APIResult<string>> => {
|
||||
const redirectURL = `https://guncadindex.com/search?${searchParams}`;
|
||||
|
||||
return { error: false, payload: redirectURL };
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
console.error(error.message);
|
||||
}
|
||||
return { error: true, errorMessage: "Something went wrong." };
|
||||
}
|
||||
};
|
||||
|
||||
export { getRandomResultFromGCI, lmgcitfy };
|
||||
|
||||
@ -112,7 +112,7 @@ export default function Home() {
|
||||
|
||||
setTimeout(() => {
|
||||
buttonRef.current!.style.scale = `1`;
|
||||
}, 2350);
|
||||
}, 1750);
|
||||
|
||||
setTimeout(() => {
|
||||
toaster.create({
|
||||
|
||||
Reference in New Issue
Block a user