Skip to content

Commit

Permalink
Fix flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Jan 11, 2024
1 parent 729ff89 commit 58e1c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/controller/actions/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export default (sbp('sbp/selectors/register', {
sbp('state/vuex/postUpgradeVerification', state)
sbp('state/vuex/replace', state)
sbp('chelonia/pubsub/update') // resubscribe to contracts since we replaced the state
// $FlowFixMe[incompatible-use]
Object.entries(state.contracts).forEach(([id, { type }]) => {
if (!contractIDs[type]) {
contractIDs[type] = []
Expand Down
2 changes: 1 addition & 1 deletion shared/domains/chelonia/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export const subscribeToForeignKeyContracts = function (contractID: string, stat
// duplicate operations. For operations involving keys, the payload will be
// rewritten to eliminate no-longer-relevant keys. In most cases, this would
// result in an empty payload, in which case the message is omitted entirely.
export const recreateEvent = (entry: GIMessage, state: Object, contractsState: Object): Promise<typeof undefined | GIMessage> => {
export const recreateEvent = (entry: GIMessage, state: Object, contractsState: Object): typeof undefined | GIMessage => {
const { HEAD: previousHEAD, height: previousHeight } = contractsState || {}
if (!previousHEAD) {
throw new Error('recreateEvent: Giving up because the contract has been removed')
Expand Down

0 comments on commit 58e1c8b

Please sign in to comment.