Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmpk committed Jan 23, 2024
1 parent a567b23 commit 085b9d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/app/src/components/form/bounty/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ function Form(props: FormProps) {
useEffect(() => {
const handleOnline = () => setIsOnline(true);
const handleOffline = () => setIsOnline(false);

window.addEventListener('online', handleOnline);
window.addEventListener('offline', handleOffline);

return () => {
window.removeEventListener('online', handleOnline);
window.removeEventListener('offline', handleOffline);
Expand Down Expand Up @@ -225,10 +225,10 @@ function Form(props: FormProps) {
);
const onClickHandler = () => {
if (!isOnline) {
alert("Bounty Failed, No internet connection. ");
alert('Bounty Failed, No internet connection. ');
return;
}

// Your existing logic for handling the button click
if (schemaData.step === 5 && valid) {
if (dynamicSchemaName) {
Expand Down

0 comments on commit 085b9d3

Please sign in to comment.