Skip to content

Commit

Permalink
refactor(contribute): fixed error with return value of cloud functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Dec 21, 2022
1 parent 69947b5 commit c11bc4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/actions/src/core/contribute/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const verifyContribution = async (
}
)

const response = await cf({
const { data: response } = await cf({
ceremonyId: ceremonyId,
circuitId: circuitId,
username,
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/helpers/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const generateGetObjectPreSignedUrl = async (
objectKey: string
): Promise<any> => {
const cf = httpsCallable(functions, 'generateGetObjectPreSignedUrl')
const data = await cf({
const { data } = await cf({
bucketName,
objectKey
})
Expand Down

0 comments on commit c11bc4d

Please sign in to comment.