Skip to content

Commit

Permalink
🎨 cleanup some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Nov 13, 2024
1 parent ecafa02 commit 40e0f0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ const FotowareAssetSource = forwardRef<HTMLDivElement>((props: any, ref) => {
const exportedImage = event.data.export.export

const getBase64 = async (uri: string, source: string) => {
console.log('getBase64')
const url = getExportURL(uri)
setLoading(true)

Expand Down Expand Up @@ -238,7 +237,7 @@ const FotowareAssetSource = forwardRef<HTMLDivElement>((props: any, ref) => {
if (accessToken && iframeURL && !loading) {
return <FotowareWidget onClose={onClose} url={iframeURL} iframeRef={iframeRef} />
}
console.log('has accesstoken', !!accessToken)

return (
<Dialog width={0} id="fotowareAssetSource" header="Select image from Fotoware" onClose={onClose} ref={ref}>
{container && !accessToken && createPortal(props.children, container)}
Expand Down
1 change: 0 additions & 1 deletion sanityv3/plugins/asset-source-fotoware/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const getAuthURL = (requestState: string): string | false => {
}

export const getAccessToken = (): string | false => {
console.log('getAccessToken')
const accessToken = localStorage.getItem('FotowareToken')

if (!accessToken) return false
Expand Down

0 comments on commit 40e0f0d

Please sign in to comment.