Skip to content

Commit

Permalink
Merge pull request #58 from chingu-voyages/bugs
Browse files Browse the repository at this point in the history
Fix banner edit error
  • Loading branch information
ultracodez authored Feb 27, 2023
2 parents e7cfaa5 + 084c52c commit 6ed84d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/edit/[id].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ export default function NewStycker({ data }) {
setFilters(value);
};

const [imageURL, setImageURL] = useState(data.image);
const [rawImageURL, setRawImageURL] = useState(null);

const [imageURL, setImageURL] = useState(data.imageURL ?? null);
const [rawImageURL, setRawImageURL] = useState(data?.imageURL?.replace("https://rnndtbcwlmjrcrjtgsgb.supabase.co/storage/v1/object/public/styckers/",""));
const supabase = useSupabaseClient();
const supabaseUser = useUser();

Expand Down

0 comments on commit 6ed84d1

Please sign in to comment.