Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Sep 27, 2024
1 parent 6c1e879 commit 3b220f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/screens/Onboarding/StepProfile/PlaceholderCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const LazyViewShot = React.lazy(
const SIZE_MULTIPLIER = 5

export interface PlaceholderCanvasRef {
capture: () => Promise<string> | undefined
capture: (() => Promise<string>) | undefined
}

// This component is supposed to be invisible to the user. We only need this for ViewShot to have something to
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Onboarding/StepProfile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export function StepProfile() {
// and the default avatar will be used. We don't want to block getting through create if this fails for some
// reason
if (!imageUri || avatar.useCreatedAvatar) {
imageUri = await canvasRef.current?.capture()
imageUri = await canvasRef.current?.capture?.()
}

if (imageUri) {
Expand Down

0 comments on commit 3b220f6

Please sign in to comment.